diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-04-19 13:47:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-19 13:47:07 +0200 |
commit | 89b56ef6da19ccff2df508e4e4a04d4feff0e04e (patch) | |
tree | 66c07495d04bbc62ae18acc9de880ece6f6616ab /interface-definitions | |
parent | 8bb55a50d08b114562bac4e4d46dc3310055c771 (diff) | |
parent | 785616393557c4e3f616287de81b61a68ba177ac (diff) | |
download | vyos-1x-89b56ef6da19ccff2df508e4e4a04d4feff0e04e.tar.gz vyos-1x-89b56ef6da19ccff2df508e4e4a04d4feff0e04e.zip |
Merge pull request #3325 from nvollmar/haproxy-http-check
T6246: basic haproxy http-check configuration
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/load-balancing_reverse-proxy.xml.in | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/interface-definitions/load-balancing_reverse-proxy.xml.in b/interface-definitions/load-balancing_reverse-proxy.xml.in index 49d1d858e..645fe30c7 100644 --- a/interface-definitions/load-balancing_reverse-proxy.xml.in +++ b/interface-definitions/load-balancing_reverse-proxy.xml.in @@ -102,6 +102,39 @@ </leafNode> </children> </node> + <node name="http-check"> + <properties> + <help>HTTP check configuration</help> + </properties> + <children> + <leafNode name="method"> + <properties> + <help>HTTP method used for health check</help> + <valueHelp> + <format>options|get|post|put</format> + <description>HTTP method used for health checking</description> + </valueHelp> + <constraint> + <regex>options|get|post|put</regex> + </constraint> + </properties> + </leafNode> + <leafNode name="uri"> + <properties> + <help>URI used for HTTP health check (Example: '/' or '/health')</help> + </properties> + </leafNode> + <leafNode name="expect"> + <properties> + <help>Expected response for the health check to pass</help> + <valueHelp> + <format>txt</format> + <description>expected response (Example: 'status 200-299' or 'string success')</description> + </valueHelp> + </properties> + </leafNode> + </children> + </node> #include <include/haproxy/rule-backend.xml.i> <tagNode name="server"> <properties> |