fix: mysql terminated
parent
ba05537289
commit
27de4075ed
|
@ -14,6 +14,19 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
name: mysql
|
name: mysql
|
||||||
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: mysql
|
- name: mysql
|
||||||
image: mysql:8.0.33
|
image: mysql:8.0.33
|
||||||
|
|
Loading…
Reference in New Issue