更新部分YAML文件(新增探针相关)

This commit is contained in:
2024-12-18 17:29:00 +00:00
committed by cloud-init created default user
parent 7c44c227c7
commit 5158128582
19 changed files with 535 additions and 0 deletions

View File

@@ -418,6 +418,26 @@ spec:
value: "replication"
- name: MYSQL_REPLICATION_PASSWORD_FILE
value: "/tmp/secret-volume/replication.key"
livenessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
nodeSelector:
node.k8s.hty1024.com/type: app
@@ -504,5 +524,25 @@ spec:
value: "/tmp/secret-volume/root.key"
- name: MYSQL_REPLICATION_MODE
value: "slave"
livenessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
nodeSelector:
node.k8s.hty1024.com/type: app

View File

@@ -215,6 +215,26 @@ spec:
env:
- name: MYSQL_ROOT_PASSWORD_FILE
value: "/tmp/secret-volume/root.key"
livenessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
nodeSelector:
node.k8s.hty1024.com/type: app