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

Add livenessProbe to demo deployment #1605

Merged
merged 1 commit into from
Aug 2, 2019
Merged

Add livenessProbe to demo deployment #1605

merged 1 commit into from
Aug 2, 2019

Conversation

charlieegan3
Copy link
Contributor

I expect many install OPA following this guide (as we did). Recent PRs have made steps to 'productionize' this (e.g. #1435)

We had an incident involving the controller where a stuck container was not restarted. We would have been helped if a liveness probe was configured. We copied the docs and this is our bad but we'd like to do our best to make sure others don't make the same mistake.

I figured it'd be ok to use the health endpoint here

We've made this change and it seems to be working ok for us.

@patrick-east
Copy link
Contributor

patrick-east commented Aug 1, 2019

Thanks for the patch! Totally agree that we should have these in the docs.

One thing i'm wondering is if, for the sake of consistency, we should have this match up with the default one on the official helm chart https://github.com/helm/charts/blob/master/stable/opa/values.yaml#L159-L172 ?

@charlieegan3
Copy link
Contributor Author

charlieegan3 commented Aug 2, 2019

@patrick-east Thanks, and no problem! 😁

I was torn between keeping the example concise and adding the check. Agree it is likely best to borrow from the chart here though. I've added this in 27f4e7b8f1921d07ff55bd2eade96b8891eec708

patrick-east
patrick-east previously approved these changes Aug 2, 2019
Copy link
Contributor

@patrick-east patrick-east left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

If you can squash those two commits together we should be good to merge this

I expect many install OPA following this guide (as we did). Recent PRs
have made steps to 'productionize' this (e.g.
[#1435](#1435))

We had an incident involving the controller where a stuck container was
not restarted. We would have been helped if a liveness probe was
configured. We copied the docs and this is our bad but we'd like to do
our best to make sure others don't make the same mistake.

I figured it'd be ok to use the health endpoint
[here](https://github.com/open-policy-agent/opa/blob/master/docs/content/rest-api.md#health-api)

We've made this change and it seems to be working ok for us.

Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
@charlieegan3
Copy link
Contributor Author

👍 Should be good to go now. Thanks.

@patrick-east patrick-east merged commit 89eacac into open-policy-agent:master Aug 2, 2019
@charlieegan3 charlieegan3 deleted the add-liveness-to-demo-deployment branch August 2, 2019 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants