summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2025-10-30 14:41:53 +0000
committerGitHub <noreply@github.com>2025-10-30 14:41:53 +0000
commit524a91424b9bc4e4b3963c049422fe689b60ec38 (patch)
treef515cbb80f6909c570ede69025e6dcfcbcfe37e7 /interface-definitions
parent449f3d4dbf1f55a7cfcd8ecf450f9ebc93188d97 (diff)
parentbd3070477804ed03e356d95e8c619fe7580b9231 (diff)
downloadvyos-1x-524a91424b9bc4e4b3963c049422fe689b60ec38.tar.gz
vyos-1x-524a91424b9bc4e4b3963c049422fe689b60ec38.zip
Merge pull request #4702 from nvollmar/T6686
T6686: adds container health checks
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/container.xml.in60
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">