mysql fixes (#2597)

* mysql fixes

see also https://github.com/kubeflow/manifests/pull/3307 and the alignment with databases from other components of kubeflow

Signed-off-by: Julius von Kohout <[email protected]>

* Update mysql.yaml

Signed-off-by: Julius von Kohout <[email protected]>

* Update mysql.yaml

Signed-off-by: Julius von Kohout <[email protected]>

* Update mysql.yaml

Signed-off-by: Julius von Kohout <[email protected]>

---------

Signed-off-by: Julius von Kohout <[email protected]>
This commit is contained in:
Julius von Kohout
2025-12-16 01:19:05 +00:00
committed by GitHub
parent 8c1bf72cfb
commit 8575c167f0
+5 -13
View File
@@ -24,7 +24,7 @@ spec:
fsGroupChangePolicy: OnRootMismatch fsGroupChangePolicy: OnRootMismatch
containers: containers:
- name: katib-mysql - name: katib-mysql
image: mysql:8.0.29 image: mysql:8.0
args: args:
- --datadir - --datadir
- /var/lib/mysql/datadir - /var/lib/mysql/datadir
@@ -46,27 +46,19 @@ spec:
command: command:
- "/bin/bash" - "/bin/bash"
- "-c" - "-c"
- "mysql -D ${MYSQL_DATABASE} -u root -p${MYSQL_ROOT_PASSWORD} -e 'SELECT 1'" - "mysql -h 127.0.0.1 -D ${MYSQL_DATABASE} -u root -p${MYSQL_ROOT_PASSWORD} -e 'SELECT 1'"
initialDelaySeconds: 10 initialDelaySeconds: 10
periodSeconds: 5 periodSeconds: 5
failureThreshold: 10 failureThreshold: 10
livenessProbe: livenessProbe:
exec: exec:
command: command:
- "/bin/bash" - "/bin/bash"
- "-c" - "-c"
- "mysqladmin ping -u root -p${MYSQL_ROOT_PASSWORD}" - "mysql -h 127.0.0.1 -D ${MYSQL_DATABASE} -u root -p${MYSQL_ROOT_PASSWORD} -e 'SELECT 1'"
initialDelaySeconds: 10 initialDelaySeconds: 10
periodSeconds: 5 periodSeconds: 5
failureThreshold: 10 failureThreshold: 10
startupProbe:
exec:
command:
- "/bin/bash"
- "-c"
- "mysqladmin ping -u root -p${MYSQL_ROOT_PASSWORD}"
periodSeconds: 15
failureThreshold: 60
volumeMounts: volumeMounts:
- name: katib-mysql - name: katib-mysql
mountPath: /var/lib/mysql mountPath: /var/lib/mysql