fix: mysql terminated

main
ycz008 2023-09-15 14:17:24 +08:00
parent 0808de0020
commit 3920e97e07
1 changed files with 13 additions and 0 deletions

View File

@ -13,6 +13,19 @@ spec:
labels: labels:
app: mongo app: mongo
spec: spec:
initContainers:
- name: init
image: busybox
imagePullPolicy: IfNotPresent
command:
- sh
- -c
- |
sysctl -w net.ipv4.tcp_keepalive_time=300
sysctl -w net.ipv4.tcp_keepalive_intvl=10
sysctl -w net.ipv4.tcp_keepalive_probes=3
securityContext:
privileged: true
containers: containers:
- name: mongo - name: mongo
image: mongo:6.0.6 image: mongo:6.0.6