diff options
| author | Nicolas Vollmar <nvollmar@gmail.com> | 2025-09-08 07:24:38 +0200 |
|---|---|---|
| committer | Nicolas Vollmar <nvollmar@gmail.com> | 2025-10-23 20:32:14 +0200 |
| commit | bd3070477804ed03e356d95e8c619fe7580b9231 (patch) | |
| tree | 302c03fdcfd9daeb41dc31769e197985ee403b09 /interface-definitions | |
| parent | c284938df61b5e970dd13cde03e0693254e89211 (diff) | |
| download | vyos-1x-bd3070477804ed03e356d95e8c619fe7580b9231.tar.gz vyos-1x-bd3070477804ed03e356d95e8c619fe7580b9231.zip | |
T6686: adds container health checks
Diffstat (limited to 'interface-definitions')
| -rw-r--r-- | interface-definitions/container.xml.in | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/interface-definitions/container.xml.in b/interface-definitions/container.xml.in index c0afde48f..f19beedb9 100644 --- a/interface-definitions/container.xml.in +++ b/interface-definitions/container.xml.in @@ -574,6 +574,66 @@ </properties> <defaultValue>journald</defaultValue> </leafNode> + <node name="health-check"> + <properties> + <help>Configure container health checks</help> + </properties> + <children> + <leafNode name="command"> + <properties> + <help>Health check command to run for the container</help> + </properties> + </leafNode> + <leafNode name="interval"> + <properties> + <help>Overwrite related health check configuration from the image</help> + <completionHelp> + <list>disable</list> + </completionHelp> + <valueHelp> + <format>disable</format> + <description>No automatic timer setup</description> + </valueHelp> + <valueHelp> + <format>u32:1-16384</format> + <description>Time in seconds</description> + </valueHelp> + <constraint> + <validator name="numeric" argument="--range 1-16384"/> + <regex>(disable)</regex> + </constraint> + </properties> + </leafNode> + <leafNode name="timeout"> + <properties> + <help>Timeout for the health check to complete</help> + <valueHelp> + <format>u32:1-16384</format> + <description>Time in seconds</description> + </valueHelp> + <constraint> + <validator name="numeric" argument="--range 1-16384"/> + </constraint> + </properties> + </leafNode> + <leafNode name="retry"> + <properties> + <help>The number of retries before container is consider unhealthy</help> + <valueHelp> + <format>0</format> + <description>No retry</description> + </valueHelp> + <valueHelp> + <format>u32:1-255</format> + <description>Number of retries</description> + </valueHelp> + <constraint> + <validator name="numeric" argument="--range 0-255"/> + </constraint> + </properties> + </leafNode> + </children> + </node> </children> </tagNode> <tagNode name="network"> |
