fix: mysql terminated
parent
0808de0020
commit
3920e97e07
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue