fix: mysql terminated

main
ycz008 2023-09-15 12:06:10 +08:00
parent ba05537289
commit 27de4075ed
1 changed files with 13 additions and 0 deletions

View File

@ -14,6 +14,19 @@ spec:
labels:
name: mysql
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:
- name: mysql
image: mysql:8.0.33