diff --git a/prod-upgrade/mysql/mysql-0.yaml b/prod-upgrade/mysql/mysql-0.yaml index 716e01b..1f6aaac 100644 --- a/prod-upgrade/mysql/mysql-0.yaml +++ b/prod-upgrade/mysql/mysql-0.yaml @@ -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: diff --git a/prod-upgrade/mysql/mysql-1.yaml b/prod-upgrade/mysql/mysql-1.yaml index d5a0494..ddc744a 100644 --- a/prod-upgrade/mysql/mysql-1.yaml +++ b/prod-upgrade/mysql/mysql-1.yaml @@ -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: