diff --git a/manifests/vizier/db/deployment.yaml b/manifests/vizier/db/deployment.yaml index e751996d7ee..417764b2238 100644 --- a/manifests/vizier/db/deployment.yaml +++ b/manifests/vizier/db/deployment.yaml @@ -31,6 +31,15 @@ spec: ports: - name: dbapi containerPort: 3306 + readinessProbe: + exec: + command: + - "/bin/bash" + - "-c" + - "mysql -D $$MYSQL_DATABASE -p$$MYSQL_ROOT_PASSWORD -e 'SELECT 1'" + initialDelaySeconds: 5 + periodSeconds: 2 + timeoutSeconds: 1 volumeMounts: - name: katib-mysql mountPath: /var/lib/mysql