mysql_cluster: Some changes
This commit is contained in:
parent
12cae34ca8
commit
a74475d61b
3 changed files with 11 additions and 21 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -29,4 +29,6 @@ configMapGenerator:
|
|||
secretGenerator:
|
||||
- name: secret
|
||||
literals:
|
||||
- mysql-root-password=root
|
||||
- rootUser=root
|
||||
- rootHost='%'
|
||||
- rootPassword=root
|
Loading…
Add table
Reference in a new issue