blob: 88abd068c7758de66552a084cc34d29b7ad9def8 [file] [log] [blame]
# 4.0.authx-log-installer.yaml
---
apiVersion: v1
kind: ConfigMap
metadata:
namespace: authx-log
name: authx-log-installer-env
data:
DB_TYPE: mysql8
---
apiVersion: batch/v1
kind: Job
metadata:
namespace: authx-log
name: authx-log-installer
spec:
completions: 1
parallelism: 1
template:
metadata:
labels:
app: authx-log-installer
spec:
restartPolicy: Never
containers:
- name: authx-log-installer
image: harbor.supwisdom.com/authx-log/authx-log-installer:1.4.4-RELEASE
imagePullPolicy: Always
env:
- name: DB_TYPE
value: mysql8
- name: JDBC_URL
value: jdbc:mysql://mysql-server.authx-service.svc.cluster.local:3306/authx_log_test?serverTimezone=Asia/Shanghai
- name: JDBC_USERNAME
value: authx_log_test
- name: JDBC_PASSWORD
value: Supwisdom!Nwpu123
envFrom:
- configMapRef:
name: jvm-env
# - secretRef:
# name: datasource-env-secret
- configMapRef:
name: authx-log-installer-env
imagePullSecrets:
- name: harbor-registry