4afd7d8259bf908aa9b0fe5ec158927c695c4bb4
[institute/deploy-authx-service.git] /
1 # user-authorization-installer.yaml
2
3 ---
4 apiVersion: v1
5 kind: ConfigMap
6 metadata:
7   namespace: user-authorization-service
8   name: user-authorization-installer-env
9 data:
10   DB_TYPE: mysql8
11
12
13 ---
14 apiVersion: batch/v1
15 kind: Job
16 metadata:
17   namespace: user-authorization-service
18   name: user-authorization-installer
19 spec:
20   completions: 1
21   parallelism: 1
22   template:
23     metadata:
24       labels:
25         app: user-authorization-installer
26     spec:
27       restartPolicy: Never
28       containers:
29       - name: user-authorization-installer
30         # 若使用了学校搭设的私有仓库,请修改
31         image: harbor.supwisdom.com/user-authorization-service/user-authorization-installer:1.4.0-RELEASE
32         imagePullPolicy: Always
33         envFrom:
34         - configMapRef:
35             name: jvm-env
36         - secretRef:
37             name: datasource-env-secret
38         - configMapRef:
39             name: user-authorization-installer-env
40         # resources:
41         #   requests:
42         #     memory: "256Mi"
43         #   limits:
44         #     memory: "256Mi"
45       imagePullSecrets:
46         - name: harbor-registry
47