Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Katib DB readinessProbe should specify user explicitly #961

Closed
vpavlin opened this issue Dec 11, 2019 · 0 comments · Fixed by #962
Closed

Katib DB readinessProbe should specify user explicitly #961

vpavlin opened this issue Dec 11, 2019 · 0 comments · Fixed by #962
Labels

Comments

@vpavlin
Copy link
Member

vpavlin commented Dec 11, 2019

/kind bug

What steps did you take and what happened:

Deploy Katib using kfctl on OpenShift 4.x

OpenShift runs containers as non-root users by default for security reasons. If that happens the readinessProbe in Katib DB deployment will fail because the command will pick up the container user instead of root

mysql -D ${MYSQL_DATABASE} -p${MYSQL_ROOT_PASSWORD} -e 'SELECT 1'

It would be ideal to add -u root explicitly

This issue has already been reported here: #361

What did you expect to happen:

readinessProbe should succeed even if the db is not running as root

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

OpenShift 4.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants