-
Notifications
You must be signed in to change notification settings - Fork 106
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
Add liveness probe to kube-mgmt container #211
Comments
We faced this issue where OPA container restarts and kube-mgmt container is not aware of it, so it doesn't load the policies. Solution that worked for us: When policies were not properly loaded to OPA, the http post request sent on OPA pod will have the below response
But when OPA policies were loaded properly the same post request will be successful with the below response
Let me know if this is a good approach. If the solution is fine, I can contribute and check in this change. |
Hello @saranyareddy24 the approach is described in head of the issue. your approach is a partial case depending on your current helm chart setup, it is not covering all possible setup options. |
Let me know if this is fine. Configmap which creates start.rego
Liveness check for fetching start.rego
Tested on my local, the configuration works. |
Hello @saranyareddy24 I do not understand the purpose of presented ConfigMap. |
Hello @saranyareddy24 I've also updated issue description. Hope, the intention will be more clear. |
https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes
Relates #189
Relates #206
The text was updated successfully, but these errors were encountered: