mysql_cluster: Some changes

This commit is contained in:
Florian RICHER 2025-03-27 15:58:14 +01:00
parent 12cae34ca8
commit a74475d61b
3 changed files with 11 additions and 21 deletions

View file

@ -4,24 +4,12 @@ metadata:
name: db-cluster
spec:
secretName: secret
mysql:
image: mysql:9
resources:
requests:
memory: "512Mi"
cpu: "1000m"
limits:
memory: "2048Mi"
cpu: "2000m"
tlsUseSelfSigned: true
instances: 3
router:
instances: 1
tlsUseSelfSigned: true
datadirVolumeClaimTemplate:
- metadata:
name: mysql-data
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 10Gi
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 10Gi

View file

@ -27,12 +27,12 @@ spec:
- name: PMA_HOST
valueFrom:
configMapKeyRef:
name: mysql-configmap
name: configmap
key: mysql-server
- name: PMA_USER
value: root
- name: PMA_PASSWORD
valueFrom:
secretKeyRef:
name: mysql-secret
key: mysql-root-password
name: secret
key: rootPassword

View file

@ -29,4 +29,6 @@ configMapGenerator:
secretGenerator:
- name: secret
literals:
- mysql-root-password=root
- rootUser=root
- rootHost='%'
- rootPassword=root