Repository navigation
[etcd-operator] readiness/liveness checks for operator - #4609
Conversation
|
/ok-to-test |
|
I'm not 100% sure all of this is desirable, as adding a liveness probe will mean the operator gets killed if it returns non 200 for |
|
@chancez Thanks for the feedback! Would love to have a better understanding of why that would be problematic. From what I understand about the liveness checks, the check failing should be exactly the case you'd want to get the pod killed and rescheduled. Is there some reason the etcd-operator would respond with a 500 and still be "healthy"? |
|
@rsmitty In some cases, if you're not careful about liveness, it could take long enough for something to start that liveness fails over and over and the pod never successfully starts. Perhaps this should just be something you can provide via values, with the ability to override things. |
|
Alrighty, @chancez, I went through and added values for the various health checking options to the values.yaml file. It should now be possible to enable/disable readiness and liveness, as well as tweak the values like periodSeconds, successThreshold, etc.. Those are currently set to the defaults in Kubernetes. Take a look and see what you think if you don't mind! |
|
Looks pretty decent. I'm still not-personally sure if defaulting liveness to enabled: true is the best default. Maybe an issue should be opened in the etcd-operator repo asking about the best settings for ready/liveness probes might be, and we can just go with what we've got here until we get a better suggestion. Thoughts? |
|
Yes, I think that sounds like a great idea. I'll also set the readiness and liveness probes to be disabled by default until we have a great answer. Just pushed that commit. |
|
@chancez are we good to merge this now? |
|
/lgtm |
|
@chancez sorry man, I had to rebase off of master to resolve a conflict and give the chart a version bump. one last |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chancez, rsmitty, timstoop The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…into rabbitmq-workload-api-fix * 'rabbitmq-workload-api-fix' of github.com:goruha/charts: (75 commits) [stable/odoo] Add carrodher as owner (helm#4856) [stable/jasperreports] Release 1.0.3 (helm#5107) Add doc about redis data only persistence (helm#4965) [sentry] add nodeSelector, affinity & tolerations (helm#4264) [stable/sonarqube] Adding support for Service annotations (helm#4060) [incubator/schema-registry] Updating GroupID, and moving to using kafka coordinator master election (helm#5019) quote boolean S3 environment variables (helm#5066) Fix graceful shutdown of brokers, more settings, version bump (helm#5082) apiVersion shouldn't be hardcoded (helm#5060) [stable/phabricator] Release 1.0.4 (helm#5068) [stable/testlink] Release 1.0.5 (helm#5050) [stable/redis] fixed a typo into NOTES (helm#5070) [etcd-operator] readiness/liveness checks for operator (helm#4609) Annotations and checksum (helm#5067) Add OWNERS file to schema-registry (helm#5054) [stable/mongodb-replicaset] Use security context on pod level (helm#5055) Typo fix in sonarqube/README.md (helm#5045) Typo fix in sonatype-nexus/README.md (helm#5042) [sonarqube] nodeSelector, affinity & tolerations. also separate resoruces for plugin pod (helm#4265) [stable/sonarqube] upgrade to LTS version (6.7.3) (helm#5029) ...
* readiness/liveness checks for operator * provide values for overriding health checks * default to disabled health checks * version bump
* readiness/liveness checks for operator * provide values for overriding health checks * default to disabled health checks * version bump Signed-off-by: voron <[email protected]>
This PR simply adds health checking for the etcd-operator chart. The operator exposes a
/readyzendpoint by default on port 8080. The probes simply make use of that endpoint and utilizes the default success and failure conditions.