mirror of
https://github.com/containers/podman.git
synced 2025-05-20 16:47:39 +08:00
Merge pull request #13909 from mheon/startup_probe
Add support for startup healthchecks
This commit is contained in:
11
docs/source/markdown/options/health-startup-cmd.md
Normal file
11
docs/source/markdown/options/health-startup-cmd.md
Normal file
@ -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.
|
7
docs/source/markdown/options/health-startup-interval.md
Normal file
7
docs/source/markdown/options/health-startup-interval.md
Normal file
@ -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**.
|
8
docs/source/markdown/options/health-startup-retries.md
Normal file
8
docs/source/markdown/options/health-startup-retries.md
Normal file
@ -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**.
|
8
docs/source/markdown/options/health-startup-success.md
Normal file
8
docs/source/markdown/options/health-startup-success.md
Normal file
@ -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**.
|
8
docs/source/markdown/options/health-startup-timeout.md
Normal file
8
docs/source/markdown/options/health-startup-timeout.md
Normal file
@ -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**.
|
@ -172,6 +172,16 @@ See [**Environment**](#environment) note below for precedence and examples.
|
||||
|
||||
@@option health-start-period
|
||||
|
||||
@@option health-startup-cmd
|
||||
|
||||
@@option health-startup-interval
|
||||
|
||||
@@option health-startup-retries
|
||||
|
||||
@@option health-startup-success
|
||||
|
||||
@@option health-startup-timeout
|
||||
|
||||
@@option health-timeout
|
||||
|
||||
#### **--help**
|
||||
|
@ -204,6 +204,16 @@ See [**Environment**](#environment) note below for precedence and examples.
|
||||
|
||||
@@option health-start-period
|
||||
|
||||
@@option health-startup-cmd
|
||||
|
||||
@@option health-startup-interval
|
||||
|
||||
@@option health-startup-retries
|
||||
|
||||
@@option health-startup-success
|
||||
|
||||
@@option health-startup-timeout
|
||||
|
||||
@@option health-timeout
|
||||
|
||||
#### **--help**
|
||||
|
Reference in New Issue
Block a user