Skip to content

Commit 2360c6f

Browse files
mysql fixes (#2597)
* mysql fixes see also kubeflow/community-distribution#3307 and the alignment with databases from other components of kubeflow Signed-off-by: Julius von Kohout <45896133+juliusvonkohout@users.noreply.github.com> * Update mysql.yaml Signed-off-by: Julius von Kohout <45896133+juliusvonkohout@users.noreply.github.com> * Update mysql.yaml Signed-off-by: Julius von Kohout <45896133+juliusvonkohout@users.noreply.github.com> * Update mysql.yaml Signed-off-by: Julius von Kohout <45896133+juliusvonkohout@users.noreply.github.com> --------- Signed-off-by: Julius von Kohout <45896133+juliusvonkohout@users.noreply.github.com>
1 parent 906a6b1 commit 2360c6f

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

manifests/v1beta1/components/mysql/mysql.yaml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spec:
2424
fsGroupChangePolicy: OnRootMismatch
2525
containers:
2626
- name: katib-mysql
27-
image: mysql:8.0.29
27+
image: mysql:8.0
2828
args:
2929
- --datadir
3030
- /var/lib/mysql/datadir
@@ -46,27 +46,19 @@ spec:
4646
command:
4747
- "/bin/bash"
4848
- "-c"
49-
- "mysql -D ${MYSQL_DATABASE} -u root -p${MYSQL_ROOT_PASSWORD} -e 'SELECT 1'"
49+
- "mysql -h 127.0.0.1 -D ${MYSQL_DATABASE} -u root -p${MYSQL_ROOT_PASSWORD} -e 'SELECT 1'"
5050
initialDelaySeconds: 10
5151
periodSeconds: 5
5252
failureThreshold: 10
5353
livenessProbe:
5454
exec:
5555
command:
56-
- "/bin/bash"
57-
- "-c"
58-
- "mysqladmin ping -u root -p${MYSQL_ROOT_PASSWORD}"
56+
- "/bin/bash"
57+
- "-c"
58+
- "mysql -h 127.0.0.1 -D ${MYSQL_DATABASE} -u root -p${MYSQL_ROOT_PASSWORD} -e 'SELECT 1'"
5959
initialDelaySeconds: 10
6060
periodSeconds: 5
6161
failureThreshold: 10
62-
startupProbe:
63-
exec:
64-
command:
65-
- "/bin/bash"
66-
- "-c"
67-
- "mysqladmin ping -u root -p${MYSQL_ROOT_PASSWORD}"
68-
periodSeconds: 15
69-
failureThreshold: 60
7062
volumeMounts:
7163
- name: katib-mysql
7264
mountPath: /var/lib/mysql

0 commit comments

Comments
 (0)