prod remove basedir and add logs,data

main
ycz008 2024-04-02 15:33:56 +08:00
parent f7ef763cd8
commit 6a32af49af
2 changed files with 4 additions and 1 deletions

View File

@ -66,6 +66,8 @@ spec:
sysctl -w net.ipv4.tcp_keepalive_time=300
sysctl -w net.ipv4.tcp_keepalive_intvl=10
sysctl -w net.ipv4.tcp_keepalive_probes=3
mkdir -p /var/lib/mysql/{logs,data}
chown -R mysql.mysql /var/lib/mysql
securityContext:
privileged: true
containers:

View File

@ -8,7 +8,6 @@ data:
bind-address=0.0.0.0
port=3306
skip-name-resolve
basedir=/var/lib/mysql
datadir=/var/lib/mysql/data
log-bin=/var/lib/mysql/logs
plugin_dir=/var/lib/mysql/plugin
@ -67,6 +66,8 @@ spec:
sysctl -w net.ipv4.tcp_keepalive_time=300
sysctl -w net.ipv4.tcp_keepalive_intvl=10
sysctl -w net.ipv4.tcp_keepalive_probes=3
mkdir -p /var/lib/mysql/{logs,data}
chown -R mysql.mysql /var/lib/mysql
securityContext:
privileged: true
containers: