From 61333370026fc2ebf5e6de5c44027f852281b453 Mon Sep 17 00:00:00 2001 From: ycz008 Date: Fri, 15 Sep 2023 11:53:15 +0800 Subject: [PATCH] fix: mysql terminated --- dev-upgrade/mysql/mysql-dev.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dev-upgrade/mysql/mysql-dev.yaml b/dev-upgrade/mysql/mysql-dev.yaml index 2794938..7fbeed8 100644 --- a/dev-upgrade/mysql/mysql-dev.yaml +++ b/dev-upgrade/mysql/mysql-dev.yaml @@ -14,6 +14,14 @@ spec: labels: name: mysql spec: + securityContext: + sysctls: + - name: net.ipv4.tcp_keepalive_time + value: "300" + - name: net.ipv4.tcp_keepalive_intvl + value: "10" + - name: net.ipv4.tcp_keepalive_probes + value: "3" containers: - name: mysql image: mysql:8.0.33