-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In kubernetes probes are used to determine when to restart a container, to know when a container is ready to start accepting traffic, or to know when when a container application has started. There are 3 types of probes: liveness, readiness and startup probes. Among there liveness and readiness are the most common and also the ones required by the users in the Go survey. This PR adds support to specify the liveness and readiness probes in the weaver kube deployer. The knobs exposed to the user are not that many: 1) Knobs that define things like: - how often to probe (optional) - how many seconds to wait for an answer before declaring the probe failing (optional) - how many consecutive successful probes to declare the container as healthy (optional) - how many consecutive failed probes to declare the container as unhealthy (optional) 2) Define what the probe should do - should you use HTTP for probing? If so, you can specify the port and a path to check for probing (port is mandatory, path is optional) - should you use TCP for probing? If so, you can specify the port - should you use a custom list of commands? We took the minimum number of knobs that might make sense for the user to configure probes. I think it should cover most of the usecases and scenarios someone might run into.
- Loading branch information
Showing
4 changed files
with
161 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters