mirror of
https://github.com/hanzo-ml/katib.git
synced 2026-09-24 00:31:27 +00:00
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:
committed by
GitHub
parent
8c1bf72cfb
commit
8575c167f0
@@ -24,7 +24,7 @@ spec:
|
||||
fsGroupChangePolicy: OnRootMismatch
|
||||
containers:
|
||||
- name: katib-mysql
|
||||
image: mysql:8.0.29
|
||||
image: mysql:8.0
|
||||
args:
|
||||
- --datadir
|
||||
- /var/lib/mysql/datadir
|
||||
@@ -46,7 +46,7 @@ spec:
|
||||
command:
|
||||
- "/bin/bash"
|
||||
- "-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
|
||||
periodSeconds: 5
|
||||
failureThreshold: 10
|
||||
@@ -55,18 +55,10 @@ spec:
|
||||
command:
|
||||
- "/bin/bash"
|
||||
- "-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
|
||||
periodSeconds: 5
|
||||
failureThreshold: 10
|
||||
startupProbe:
|
||||
exec:
|
||||
command:
|
||||
- "/bin/bash"
|
||||
- "-c"
|
||||
- "mysqladmin ping -u root -p${MYSQL_ROOT_PASSWORD}"
|
||||
periodSeconds: 15
|
||||
failureThreshold: 60
|
||||
volumeMounts:
|
||||
- name: katib-mysql
|
||||
mountPath: /var/lib/mysql
|
||||
|
||||
Reference in New Issue
Block a user