blob: b71ac1c5e1bb51268378ef9f4e8fbb876eda1a97 [file] [log] [blame]
刘洪青f69336e2022-03-15 13:50:11 +08001# 4.0.authx-log-installer.yaml
2
3---
4apiVersion: v1
5kind: ConfigMap
6metadata:
7 namespace: authx-log
8 name: authx-log-installer-env
9data:
10 DB_TYPE: mysql8
11
12
13---
14apiVersion: batch/v1
15kind: Job
16metadata:
17 namespace: authx-log
18 name: authx-log-installer
19spec:
20 completions: 1
21 parallelism: 1
22 template:
23 metadata:
24 labels:
25 app: authx-log-installer
26 spec:
27 restartPolicy: Never
28 containers:
29 - name: authx-log-installer
刘洪青8cbef0e2022-04-19 17:04:49 +080030 image: paas.harbor.nwpu.edu.cn/authx-log/authx-log-installer:1.4.4-RELEASE
刘洪青f69336e2022-03-15 13:50:11 +080031 imagePullPolicy: Always
32 env:
33 - name: DB_TYPE
34 value: mysql8
35 - name: JDBC_URL
刘洪青8cbef0e2022-04-19 17:04:49 +080036 value: jdbc:mysql://mysql-server.authx-service.svc.cluster.local:3306/authx_log?serverTimezone=Asia/Shanghai
刘洪青f69336e2022-03-15 13:50:11 +080037 - name: JDBC_USERNAME
刘洪青8cbef0e2022-04-19 17:04:49 +080038 value: authx_log
刘洪青f69336e2022-03-15 13:50:11 +080039 - name: JDBC_PASSWORD
刘洪青8cbef0e2022-04-19 17:04:49 +080040 value: Nwpu@Supwisdom123
刘洪青f69336e2022-03-15 13:50:11 +080041 envFrom:
42 - configMapRef:
43 name: jvm-env
44 # - secretRef:
45 # name: datasource-env-secret
46 - configMapRef:
47 name: authx-log-installer-env
48 imagePullSecrets:
49 - name: harbor-registry