Commit fbed8d2c authored by 周魏's avatar 周魏

添加初始化sql job

parent f9879058
......@@ -12,7 +12,7 @@ spec:
- name: portal-ui
protocol: TCP
port: 80
targetPort: 80
targetPort: 8080
selector:
app: portal-ui
type: ClusterIP
......
apiVersion: batch/v1
kind: Job
metadata:
name: usma-db-init
spec:
template:
spec:
restartPolicy: Never
containers:
- name: usma-db-init
{{- if contains "/" .Values.usmaDbInit.image.repository }}
image: "{{ .Values.usmaDbInit.image.repository }}:{{ .Values.usmaDbInit.image.tag }}{{ template "beagle.imageArch" . }}"
{{- else }}
image: "{{ .Values.global.hub }}/{{ .Values.usmaDbInit.image.repository }}:{{ .Values.usmaDbInit.image.tag }}{{ template "beagle.imageArch" . }}"
{{- end }}
imagePullPolicy: Always
envFrom:
- configMapRef:
name: "usma"
backoffLimit: 2
......@@ -10,8 +10,8 @@ global:
usma:
conf:
DB_URL: "host=postgresql.test port=5432 user=postgres password=passwd123 dbname=usma sslmode=disable"
REDIS_URL: "redis://redis.test:6379"
DB_URL: "host=postgresql.usma port=5432 user=postgres password=passwd123 dbname=postgres sslmode=disable"
REDIS_URL: "redis://redis.usma:6379"
REDIS_PASSWORD: "passwd123"
LOCATION_KEY: "QKFBZ-PGGWJ-VZQFF-FHPA7-QWT5H-YHF4T"
LOCATION_URL: "https://apis.map.qq.com/ws/location/v1/ip"
......@@ -50,6 +50,17 @@ usmaUi:
repository: hub.wodcloud.com/usma/usma-ui
tag: v2.2.2
# 初始化数据库job
usmaDbInit:
image:
repository: usma-db-init
tag: v2.4.0
# 跨域的ingressroute
cros:
apaasNamespace: apaas # apaas命名空间
cloudNamespace: beagle-system # 容器云命名空间
# 统一门户
portal:
enabled: true
......@@ -59,11 +70,10 @@ portal:
conf:
configmap: "window.serviceConfig = {\n apaas: 'https://apaas.hbyjkffn.hb.cegn.cn:30443/apaas/ui/#/',\n}"
cros:
apaasNamespace: apaas
cloudNamespace: beagle-system
# redis中间件默认svc是 redis
redis:
enabled: true
enabled: true
image:
repository: redis
tag: 6.2.6
......@@ -77,6 +87,7 @@ redis:
#持久化存储类
storageClassName: "hostpath"
# postgresql中间件默认svc是 postgresql
postgresql:
enabled: true
image:
......
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