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

The init initcontainer must wait for the database service to be available #12

Open
jacobdotcosta opened this issue Jan 11, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jacobdotcosta
Copy link
Member

The init initcontainer that configures the database is assuming the database is not configured because it is not up yet. It should wait for the database service to be available.

@jacobdotcosta jacobdotcosta added the bug Something isn't working label Jan 11, 2024
@jacobdotcosta jacobdotcosta self-assigned this Jan 11, 2024
@jacobdotcosta
Copy link
Member Author

Something like this?

References: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/

for i in {1..100}; do sleep 1; if nslookup myservice; then exit 0; fi; done; exit 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant