-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add possibility to define custom readinessProbe #485
Conversation
mschmidt291
commented
Feb 14, 2020
•
edited
Loading
edited
- Chart version not bumped (the versions are all bumped and released at the same time)
- README.md updated with any new values or changes
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
@mschmidt291 are you able to elaborate on why you need to define a completely custom readiness probe? The reason I ask is that the existing readiness probe has been written to handle multiple scenarios gracefully, such as initial cluster bootstrapping, rolling restarts, graceful cluster upgrades etc. |
@fatmcgav Oh damn, I actually closed the first PR because of the CLA which was missing. I forgot to write the link down here. There is a bug in Kuberentes with exec readinessProbes, which results in a very high CPU usage. You can read more about it here: kubernetes/kubernetes#82440 We're currently in the process of moving every deployment which we use away from exec to a tcpProbe or httpProbe. This fixes the high CPU usage. I also wrote a service which will run as a extraContainer, which handles the readinesscheck. (it's currently private, but I would be happy to release it publically) It just fetches the health api and returns either 200 status code if the cluster is healthy, or 503 if the desired status code is not yet there. |
@mschmidt291 cheers for the link... That's a pretty painful looking bug... I'll raise this PR internally to see how we want to handle it. |
jenkins test this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⛴