diff --git a/mysql/configmap.yaml b/mysql/configmap.yaml index 494cc04..4811162 100644 --- a/mysql/configmap.yaml +++ b/mysql/configmap.yaml @@ -7,6 +7,7 @@ data: custom.cnf: | [mysqld] # Connection settings + bind-address=0.0.0.0 skip-name-resolve max_connections=200 max_allowed_packet=64M diff --git a/mysql/statefulset.yaml b/mysql/statefulset.yaml index 0deabe2..527e222 100644 --- a/mysql/statefulset.yaml +++ b/mysql/statefulset.yaml @@ -63,7 +63,7 @@ spec: command: - /bin/sh - -c - - mysqladmin ping -h 127.0.0.1 -u root -p${MYSQL_ROOT_PASSWORD} + - mysqladmin ping -h localhost --silent initialDelaySeconds: 30 periodSeconds: 10 timeoutSeconds: 5 @@ -73,7 +73,7 @@ spec: command: - /bin/sh - -c - - mysqladmin ping -h 127.0.0.1 -u root -p${MYSQL_ROOT_PASSWORD} + - mysql -h localhost -u root -p${MYSQL_ROOT_PASSWORD} -e "SELECT 1" initialDelaySeconds: 10 periodSeconds: 10 timeoutSeconds: 5 @@ -83,11 +83,11 @@ spec: command: - /bin/sh - -c - - mysqladmin ping -h 127.0.0.1 -u root -p${MYSQL_ROOT_PASSWORD} + - mysqladmin ping -h localhost --silent initialDelaySeconds: 15 periodSeconds: 10 timeoutSeconds: 5 - failureThreshold: 30 + failureThreshold: 40 resources: limits: cpu: 1000m