patch
This commit is contained in:
@@ -36,6 +36,16 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: mysql-secret
|
name: mysql-secret
|
||||||
key: DB_NAME
|
key: DB_NAME
|
||||||
|
- name: MYSQL_USER
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: mysql-secret
|
||||||
|
key: MYSQL_USER
|
||||||
|
- name: MYSQL_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: mysql-secret
|
||||||
|
key: MYSQL_PASSWORD
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: mysql-data
|
- name: mysql-data
|
||||||
mountPath: /var/lib/mysql
|
mountPath: /var/lib/mysql
|
||||||
@@ -49,14 +59,14 @@ spec:
|
|||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
exec:
|
||||||
command: ["mysqladmin", "ping", "-h", "localhost"]
|
command: ["mysqladmin", "ping", "-h", "localhost"]
|
||||||
initialDelaySeconds: 90 # was 30 — must survive full init
|
initialDelaySeconds: 90
|
||||||
periodSeconds: 15
|
periodSeconds: 15
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
exec:
|
exec:
|
||||||
command: ["mysqladmin", "ping", "-h", "localhost"]
|
command: ["mysqladmin", "ping", "-h", "localhost"]
|
||||||
initialDelaySeconds: 60 # was 10 — critical fix
|
initialDelaySeconds: 60
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
failureThreshold: 5
|
failureThreshold: 5
|
||||||
@@ -75,7 +85,7 @@ spec:
|
|||||||
# spec:
|
# spec:
|
||||||
# replicas: 1
|
# replicas: 1
|
||||||
# strategy:
|
# strategy:
|
||||||
# type: Recreate # MySQL requires Recreate since PVC is ReadWriteOnce
|
# type: Recreate
|
||||||
# selector:
|
# selector:
|
||||||
# matchLabels:
|
# matchLabels:
|
||||||
# app.kubernetes.io/name: mysql
|
# app.kubernetes.io/name: mysql
|
||||||
@@ -115,25 +125,17 @@ spec:
|
|||||||
# memory: 1Gi
|
# memory: 1Gi
|
||||||
# livenessProbe:
|
# livenessProbe:
|
||||||
# exec:
|
# exec:
|
||||||
# command:
|
# command: ["mysqladmin", "ping", "-h", "localhost"]
|
||||||
# - mysqladmin
|
# initialDelaySeconds: 90 # was 30 — must survive full init
|
||||||
# - ping
|
# periodSeconds: 15
|
||||||
# - -h
|
|
||||||
# - localhost
|
|
||||||
# initialDelaySeconds: 30
|
|
||||||
# periodSeconds: 10
|
|
||||||
# timeoutSeconds: 5
|
# timeoutSeconds: 5
|
||||||
# failureThreshold: 3
|
# failureThreshold: 3
|
||||||
# readinessProbe:
|
# readinessProbe:
|
||||||
# exec:
|
# exec:
|
||||||
# command:
|
# command: ["mysqladmin", "ping", "-h", "localhost"]
|
||||||
# - mysqladmin
|
# initialDelaySeconds: 60 # was 10 — critical fix
|
||||||
# - ping
|
# periodSeconds: 10
|
||||||
# - -h
|
# timeoutSeconds: 5
|
||||||
# - localhost
|
|
||||||
# initialDelaySeconds: 10
|
|
||||||
# periodSeconds: 5
|
|
||||||
# timeoutSeconds: 3
|
|
||||||
# failureThreshold: 5
|
# failureThreshold: 5
|
||||||
# volumes:
|
# volumes:
|
||||||
# - name: mysql-data
|
# - name: mysql-data
|
||||||
|
|||||||
Reference in New Issue
Block a user