Browse Source

Improve questions form for health check

master
Fábio Kaiser Rauber 5 years ago
parent
commit
b74da20d4d
  1. 39
      charts/keepalived/v2.2.0/questions.yaml

39
charts/keepalived/v2.2.0/questions.yaml

@ -52,28 +52,47 @@ questions:
- "Generic HTTP" - "Generic HTTP"
- "Generic TCP" - "Generic TCP"
- "Other" - "Other"
required: true
group: Health Check group: Health Check
# Nginx Ingress
- variable: keepalived.check_script - variable: keepalived.check_script
show_if: "haManagedService=Nginx Ingress" show_if: "haManagedService=Nginx Ingress"
default: "wget http://localhost/healthz" default: "wget -q http://localhost/healthz -O -"
description: "Service Healthcheck Script (runs inside the Keepalived container)" description: "Default Nginx Ingress healthcheck."
label: Check Script label: Nginx Ingress Check Script
type: string type: string
group: Health Check group: Hidden
required: true required: true
- variable: keepalived.check_script - variable: keepalived.check_script
show_if: "haManagedService=Other" show_if: "haManagedService=Generic HTTPS"
default: "ss -ltn | grep :443" default: "ss -ltn | grep :443"
description: "Service Healthcheck Script (runs inside the Keepalived container)" description: "Uses SS to check if port 443 is open in localhost."
label: Check Script label: Generic HTTPS Check Script
type: string type: string
group: Health Check group: Hidden
required: true
- variable: keepalived.check_script
show_if: "haManagedService=Generic HTTP"
default: "ss -ltn | grep :80"
description: "Uses SS to check if port 80 is open in localhost."
label: Generic HTTP Check Script
type: string
group: Hidden
required: true required: true
- variable: keepalived.check_port - variable: keepalived.check_port
show_if: "haManagedService=Generic TCP" show_if: "haManagedService=Generic TCP"
default: "80" default: "80"
description: "Generic TCP Port" description: "Specify a generic TCP Port to be checked with SS."
label: Check Port label: TCP Check Port
type: int type: int
group: Health Check group: Health Check
required: true required: true
- variable: keepalived.check_script
show_if: "haManagedService=Other"
default: ""
description: "Custom healthcheck script (runs in the keepalived container)"
label: Custom Check Script
type: string
group: Health Check
required: true

Loading…
Cancel
Save