Commit 3385d4e8 authored by 严国华's avatar 严国华

山西信息院云时代apaas政务云生产环境统一用户charts(amd) init

parent 6565f937
......@@ -2,4 +2,4 @@ configInfo:
- name: global.host
text: 地址
type: text
value: "bg-usma.ysdpaas.local"
value: "bg-usma.zwyycs.local"
......@@ -9,5 +9,5 @@ data:
TOKEN_KEY: usmaToken
# GIN_MODE: "release"
LOG_DIR_PREFIX: "/app/log"
USMA_HOST: "https://{{ .Values.global.host }}"
USMA_HOST: "http://{{ .Values.global.host }}"
{{ toYaml .Values.usma.conf | indent 2 }}
......@@ -2,16 +2,14 @@ apiVersion: bcc.bd-apaas.com/v1alpha1
kind: IngressRoute
metadata:
name: file-upload
namespace: {{ .Release.Namespace }}
namespace: {{ .Release.Namespace }}
spec:
entryPoints:
- websecure
- web
routes:
- kind: Rule
match: Host(`{{ .Values.global.host }}`) && PathPrefix(`/bgfile`)
- kind: Rule
match: Host(`bg-usma.zwyycs.local`) && PathPrefix(`/bgfile`)
services:
- kind: Service
name: file-upload
port: 80
tls:
certResolver: default
......@@ -13,7 +13,8 @@ spec:
port: 80
protocol: TCP
targetPort: 80
nodePort: 30094
selector:
app: file-upload
type: ClusterIP
type: NodePort
sessionAffinity: None
......@@ -4,5 +4,5 @@ metadata:
name: usma
namespace: {{ .Release.Namespace }}
spec:
host: {{ .Values.global.host }}
host: bg-usma.zwyycs.local
kind: ConfigMap
apiVersion: v1
metadata:
name: sms-verify-api
namespace: {{ .Release.Namespace }}
data:
GIN_MODE: "debug"
REDIS_URL: {{ .Values.usma.conf.REDIS_URL }}
REDIS_PASSWORD: {{ .Values.usma.conf.REDIS_PASSWORD }}
ACCESS_KEY_ID: "LTAI4GBcVubRjzX7ABPcHnhB"
ACCESS_SECRET: "dYE2dtABFOqYtK1ijcrits0yedHkw7"
TPL_CODE_LOGIN: "SMS_212925130"
TPL_CODE_PWD: "SMS_212925127"
TPL_CODE_REGISTRY: "SMS_212925128"
TPL_CODE_LOGIN_ABNORMAL: "SMS_212925129"
TPL_CODE_ID_CARD: "SMS_460741011"
TPL_CODE_MOBILE: "SMS_212925126"
TPL_CODE_SYSTEM: "SMS_229477217"
SIGN_NAME: "比格数据"
SMS_MODE: "aliYun"
kind: Deployment
apiVersion: apps/v1
metadata:
name: sms-verify-api
namespace: {{ .Release.Namespace }}
labels:
{{ include "sms-verify-api.labels" . | indent 4 }}
app: sms-verify-api
versoin: {{ .Values.smsVerifyApi.image.tag }}
spec:
replicas: 1
selector:
matchLabels:
app: sms-verify-api
template:
metadata:
labels:
{{ include "sms-verify-api.labels" . | indent 8 }}
app: sms-verify-api
version: {{ .Values.smsVerifyApi.image.tag }}
spec:
volumes:
- name: localtime
hostPath:
path: /etc/localtime
type: ''
containers:
- name: sms-verify-api
{{- if contains "/" .Values.smsVerifyApi.image.repository }}
image: "{{ .Values.smsVerifyApi.image.repository }}:{{ .Values.smsVerifyApi.image.tag }}{{ template "beagle.imageArch" . }}"
{{- else }}
image: "{{ .Values.global.hub }}/{{ .Values.smsVerifyApi.image.repository }}:{{ .Values.smsVerifyApi.image.tag }}{{ template "beagle.imageArch" . }}"
{{- end }}
imagePullPolicy: "{{ .Values.global.imagePullPolicy }}"
ports:
- containerPort: 8080
protocol: TCP
envFrom:
- configMapRef:
name: sms-verify-api
volumeMounts:
- name: localtime
mountPath: /etc/localtime
restartPolicy: Always
apiVersion: bcc.bd-apaas.com/v1alpha1
kind: IngressRoute
metadata:
name: sms-verify-api
namespace: {{ .Release.Namespace }}
spec:
entryPoints:
- websecure
routes:
- kind: Rule
match: Host(`{{ .Values.global.host }}`) && PathPrefix(`/sms/api`)
services:
- kind: Service
name: sms-verify-api
port: 80
tls:
certResolver: default
kind: Service
apiVersion: v1
metadata:
name: sms-verify-api
namespace: {{ .Release.Namespace }}
labels:
{{ include "sms-verify-api.labels" . | indent 4 }}
app: sms-verify-api
versoin: {{ .Values.smsVerifyApi.image.tag }}
spec:
ports:
- name: sms-verify-api
protocol: TCP
port: 80
targetPort: 8080
selector:
app: sms-verify-api
type: ClusterIP
sessionAffinity: None
......@@ -2,16 +2,14 @@ apiVersion: bcc.bd-apaas.com/v1alpha1
kind: IngressRoute
metadata:
name: usma-api
namespace: {{ .Release.Namespace }}
namespace: {{ .Release.Namespace }}
spec:
entryPoints:
- websecure
- web
routes:
- kind: Rule
match: Host(`{{ .Values.global.host }}`) && PathPrefix(`/usma/api`)
- kind: Rule
match: Host(`bg-usma.zwyycs.local`) && PathPrefix(`/usma/api`)
services:
- kind: Service
name: usma-api
port: 80
tls:
certResolver: default
......@@ -12,5 +12,7 @@ spec:
- name: usma-api
port: 80
targetPort: 8080
nodePort: 30091
selector:
app: usma-api
\ No newline at end of file
app: usma-api
type: NodePort
\ No newline at end of file
......@@ -2,16 +2,15 @@ apiVersion: bcc.bd-apaas.com/v1alpha1
kind: IngressRoute
metadata:
name: usma-login-api
namespace: {{ .Release.Namespace }}
namespace: {{ .Release.Namespace }}
spec:
entryPoints:
- websecure
- web
routes:
- kind: Rule
match: Host(`{{ .Values.global.host }}`) && PathPrefix(`/iam/api`)
- kind: Rule
match: Host(`bg-usma.zwyycs.local`) && PathPrefix(`/iam/api`)
services:
- kind: Service
name: usma-login-api
port: 80
tls:
certResolver: default
......@@ -13,7 +13,9 @@ spec:
protocol: TCP
port: 80
targetPort: 80
nodePort: 30093
selector:
app: usma-login-api
type: ClusterIP
type: NodePort
sessionAffinity: None
......@@ -2,16 +2,15 @@ apiVersion: bcc.bd-apaas.com/v1alpha1
kind: IngressRoute
metadata:
name: usma-login
namespace: {{ .Release.Namespace }}
namespace: {{ .Release.Namespace }}
spec:
entryPoints:
- websecure
- web
routes:
- kind: Rule
match: Host(`{{ .Values.global.host }}`) && PathPrefix(`/usma/login`)
- kind: Rule
match: Host(`bg-usma.zwyycs.local`) && PathPrefix(`/usma/login`)
services:
- kind: Service
name: usma-login
port: 80
tls:
certResolver: default
......@@ -13,7 +13,8 @@ spec:
protocol: TCP
port: 80
targetPort: 80
nodePort: 30092
selector:
app: usma-login
type: ClusterIP
type: NodePort
sessionAffinity: None
......@@ -7,6 +7,6 @@ data:
configmap: |-
window.defaultConfig = {
tokenName: "usmaToken",
gitLogoutUrl: "https://gitlab.ysdpaas.local/usma/rest/v5/git/sign_out",
usmaLoginUrl: "https://{{ .Values.global.host }}/usma/login/#/login"
gitLogoutUrl: "http://183.201.253.162:10003/usma/rest/v5/git/sign_out",
usmaLoginUrl: "http://{{ .Values.global.host }}/usma/login/#/login"
};
......@@ -2,16 +2,15 @@ apiVersion: bcc.bd-apaas.com/v1alpha1
kind: IngressRoute
metadata:
name: usma-ui
namespace: {{ .Release.Namespace }}
namespace: {{ .Release.Namespace }}
spec:
entryPoints:
- websecure
- web
routes:
- kind: Rule
match: Host(`{{ .Values.global.host }}`) && PathPrefix(`/usma/ui`)
- kind: Rule
match: Host(`bg-usma.zwyycs.local`) && PathPrefix(`/usma/ui`)
services:
- kind: Service
name: usma-ui
port: 8080
tls:
certResolver: default
......@@ -13,5 +13,8 @@ spec:
protocol: TCP
port: 8080
targetPort: 8080
nodePort: 30090
selector:
app: usma-ui
type: NodePort
......@@ -6,84 +6,79 @@ global:
# 镜像拉取策略
imagePullPolicy: "IfNotPresent"
# 镜像架构(amd64,arm64,ppc64le,mips64le),只控制servicechoreography业务系统的镜像架构,依赖组件不受此参数控制
imageArch: arm64
imageArch: amd64
usma:
conf:
DB_SCHEMA: "public"
DB_URL: "host=postgresql port=5432 user=postgres password=passwd123 dbname=postgres sslmode=disable search_path=public"
DB_URL: "host=postgresql port=5432 user=postgres password=k6psy7kafT%U dbname=postgres sslmode=disable search_path=public"
REDIS_URL: "redis://redis:6379"
REDIS_PASSWORD: "passwd123"
REDIS_PASSWORD: "k6psy7kafT%U"
LOCATION_KEY: "QKFBZ-PGGWJ-VZQFF-FHPA7-QWT5H-YHF4T"
LOCATION_URL: "https://apis.map.qq.com/ws/location/v1/ip"
SMS_SERVICE: "http://sms-verify-api:80/sms/api"
fileUpload:
image:
repository: hub.wodcloud.com/devops/fileupload
repository: registry.beagle.default:6444/devops/fileupload
tag: v2.0
storageClassName: "hostpath"
smsVerifyApi:
image:
repository: registry.cn-qingdao.aliyuncs.com/wod/sms-verify-api
tag: v2.4.0
storageClassName: "nfs-storage"
usmaApi:
image:
repository: hub.wodcloud.com/apaas-sxxcy/usma-api
repository: registry.beagle.default:6444/apaas-sxxcy/usma-api
tag: v1.0.2
storageClassName: "hostpath"
storageClassName: "nfs-storage"
usmaLoginApi:
image:
repository: hub.wodcloud.com/apaas-sxxcy/usma-login-api
repository: registry.beagle.default:6444/apaas-sxxcy/usma-login-api
tag: v1.0.0
storageClassName: "hostpath"
storageClassName: "nfs-storage"
usmaLogin:
image:
repository: hub.wodcloud.com/apaas-sxxcy/usma-login-ui
repository: registry.beagle.default:6444/apaas-sxxcy/usma-login-ui
tag: v1.0.0
usmaUi:
image:
repository: hub.wodcloud.com/apaas-sxxcy/usma-ui
repository: registry.beagle.default:6444/apaas-sxxcy/usma-ui
tag: v1.0.1
# 初始化数据库job
usmaDbInit:
image:
repository: hub.wodcloud.com/wod/usma-db-init
repository: registry.beagle.default:6444/wod/usma-db-init
tag: v1.0.0
# redis中间件默认svc是 redis
redis:
enabled: true
image:
repository: redis
tag: 6.2.6
repository: registry.beagle.default:6444/wod/redis
tag: 6.0.9
#redis的config
conf:
port: 'port 6379'
db: 'databases 16'
maxmem: 'maxmemory 256mb'
apl: 'appendonly yes'
passwd: 'requirepass passwd123'
passwd: 'requirepass k6psy7kafT%U'
#持久化存储类
storageClassName: "hostpath"
storageClassName: "nfs-storage"
# postgresql中间件默认svc是 postgresql
postgresql:
enabled: true
image:
repository: postgres
tag: 13.5
repository: registry.beagle.default:6444/wod/postgis
tag: 11-2.5
initImage:
repository: busybox
repository: registry.beagle.default:6444/devops/busybox
tag: 1.33
#数据库密码
POSTGRES_PASSWORD: "passwd123"
POSTGRES_PASSWORD: "k6psy7kafT%U"
#持久化存储类
storageClassName: "hostpath"
storageClassName: "nfs-storage"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment