prod mysql secret for cm

main
ycz008 2024-04-02 16:04:13 +08:00
parent df30bba104
commit 8d0088d46c
2 changed files with 26 additions and 10 deletions

View File

@ -76,13 +76,22 @@ spec:
image: mysql:8.0.33
env:
- name: MYSQL_ROOT_PASSWORD
value: "Beaconfire@2099"
valueFrom:
secretKeyRef:
name: mysql
key: mysql_root
- name: MYSQL_USER
valueFrom:
secretKeyRef:
name: mysql
key: mysql_user
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
name: mysql
key: mysql_apps
- name: MYSQL_DATABASE
value: "test"
- name: MYSQL_USER
value: "app"
- name: MYSQL_PASSWORD
value: "HelloBeaconfire!"
volumeMounts:
- name: mysql-m
mountPath: /var/lib/mysql

View File

@ -76,13 +76,20 @@ spec:
image: mysql:8.0.33
env:
- name: MYSQL_ROOT_PASSWORD
value: "Beaconfire@2099"
- name: MYSQL_DATABASE
value: "test"
valueFrom:
secretKeyRef:
name: mysql
key: mysql_root
- name: MYSQL_USER
value: "app"
valueFrom:
secretKeyRef:
name: mysql
key: mysql_user
- name: MYSQL_PASSWORD
value: "HelloBeaconfire!"
valueFrom:
secretKeyRef:
name: mysql
key: mysql_apps
volumeMounts:
- name: mysql-s
mountPath: /var/lib/mysql