-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13909 from mheon/startup_probe
Add support for startup healthchecks
- Loading branch information
Showing
24 changed files
with
551 additions
and
147 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
####> This option file is used in: | ||
####> podman create, run | ||
####> If you edit this file, make sure your changes | ||
####> are applicable to all of those. | ||
#### **--health-startup-cmd**=*"command"* | *'["command", "arg1", ...]'* | ||
|
||
Set a startup healthcheck command for a container. This command will be executed inside the container and is used to gate the regular | ||
healthcheck. When the startup command succeeds, the regular healthcheck will begin and the startup healthcheck will cease. Optionally, | ||
if the command fails for a set number of attempts, the container will be restarted. A startup healthcheck can be used to ensure that | ||
containers with an extended startup period are not marked as unhealthy until they are fully started. Startup healthchecks can only be | ||
used when a regular healthcheck (from the container's image or the **--health-cmd** option) is also set. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
####> This option file is used in: | ||
####> podman create, run | ||
####> If you edit this file, make sure your changes | ||
####> are applicable to all of those. | ||
#### **--health-startup-interval**=*interval* | ||
|
||
Set an interval for the startup healthcheck. An _interval_ of **disable** results in no automatic timer setup. The default is **30s**. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
####> This option file is used in: | ||
####> podman create, run | ||
####> If you edit this file, make sure your changes | ||
####> are applicable to all of those. | ||
#### **--health-startup-retries**=*retries* | ||
|
||
The number of attempts allowed before the startup healthcheck restarts the container. If set to **0**, the container will never be | ||
restarted. The default is **0**. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
####> This option file is used in: | ||
####> podman create, run | ||
####> If you edit this file, make sure your changes | ||
####> are applicable to all of those. | ||
#### **--health-startup-success**=*retries* | ||
|
||
The number of successful runs required before the startup healthcheck will succeed and the regular healthcheck will begin. A value | ||
of **0** means that any success will begin the regular healthcheck. The default is **0**. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
####> This option file is used in: | ||
####> podman create, run | ||
####> If you edit this file, make sure your changes | ||
####> are applicable to all of those. | ||
#### **--health-startup-timeout**=*timeout* | ||
|
||
The maximum time a startup healthcheck command has to complete before it is marked as failed. The value can be expressed in a time | ||
format like **2m3s**. The default value is **30s**. |
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
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
Oops, something went wrong.