Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.

[etcd-operator] readiness/liveness checks for operator - #4609

Merged
k8s-ci-robot merged 4 commits into
helm:masterfrom
rsmitty:etcd-operator
Apr 16, 2018
Merged

k8s-ci-robot merged 4 commits into
helm:masterfrom
rsmitty:etcd-operator

Conversation

@rsmitty

@rsmitty rsmitty commented Apr 2, 2018

Copy link
Copy Markdown
Contributor

This PR simply adds health checking for the etcd-operator chart. The operator exposes a /readyz endpoint by default on port 8080. The probes simply make use of that endpoint and utilizes the default success and failure conditions.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 2, 2018
@k8s-ci-robot
k8s-ci-robot requested review from chancez and lachie83 April 2, 2018 16:04
@timstoop

timstoop commented Apr 2, 2018

Copy link
Copy Markdown
Contributor

/ok-to-test
/lgtm

@k8s-ci-robot k8s-ci-robot added lgtm Indicates that a PR is ready to be merged. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 2, 2018
@chancez

chancez commented Apr 2, 2018

Copy link
Copy Markdown
Contributor

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 readyz which may not be a good thing. The readiness probe is probably fine however.

@rsmitty

rsmitty commented Apr 3, 2018 •

Copy link
Copy Markdown
Contributor Author

@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"?

@k8s-ci-robot k8s-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Apr 3, 2018
@chancez

chancez commented Apr 3, 2018

Copy link
Copy Markdown
Contributor

@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.

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 3, 2018
@rsmitty

rsmitty commented Apr 3, 2018 •

Copy link
Copy Markdown
Contributor Author

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!

@chancez

chancez commented Apr 3, 2018

Copy link
Copy Markdown
Contributor

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?

@rsmitty

rsmitty commented Apr 3, 2018

Copy link
Copy Markdown
Contributor Author

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.

@rsmitty

rsmitty commented Apr 16, 2018

Copy link
Copy Markdown
Contributor Author

@chancez are we good to merge this now?

@chancez

chancez commented Apr 16, 2018

Copy link
Copy Markdown
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. and removed lgtm Indicates that a PR is ready to be merged. labels Apr 16, 2018
@rsmitty

rsmitty commented Apr 16, 2018

Copy link
Copy Markdown
Contributor Author

@chancez sorry man, I had to rebase off of master to resolve a conflict and give the chart a version bump. one last /lgtm?

@chancez

chancez commented Apr 16, 2018

Copy link
Copy Markdown
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 16, 2018
@k8s-ci-robot

Copy link
Copy Markdown
Contributor

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot
k8s-ci-robot merged commit 2b8d9f9 into helm:master Apr 16, 2018
goruha added a commit to goruha/charts that referenced this pull request Apr 19, 2018
…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)
  ...
ichtar pushed a commit to Bestmile/charts that referenced this pull request May 15, 2018
* readiness/liveness checks for operator

* provide values for overriding health checks

* default to disabled health checks

* version bump
voron pushed a commit to dysnix/helm-charts that referenced this pull request Sep 5, 2018
* readiness/liveness checks for operator

* provide values for overriding health checks

* default to disabled health checks

* version bump

Signed-off-by: voron <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants