Browse Source

Add var for control initialDelaySeconds in nginx ingress probe (#9405)

Signed-off-by: Zemtsov Vladimir <vl.zemtsov@gmail.com>

Signed-off-by: Zemtsov Vladimir <vl.zemtsov@gmail.com>
pull/9410/head
Vladimir 2 years ago
committed by GitHub
parent
commit
958840da89
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions
  1. 2
      roles/kubernetes-apps/ingress_controller/ingress_nginx/defaults/main.yml
  2. 4
      roles/kubernetes-apps/ingress_controller/ingress_nginx/templates/ds-ingress-nginx-controller.yml.j2

2
roles/kubernetes-apps/ingress_controller/ingress_nginx/defaults/main.yml

@ -16,3 +16,5 @@ ingress_nginx_termination_grace_period_seconds: 300
# ingress_nginx_class: nginx # ingress_nginx_class: nginx
ingress_nginx_webhook_enabled: false ingress_nginx_webhook_enabled: false
ingress_nginx_webhook_job_ttl: 1800 ingress_nginx_webhook_job_ttl: 1800
ingress_nginx_probe_initial_delay_seconds: 10

4
roles/kubernetes-apps/ingress_controller/ingress_nginx/templates/ds-ingress-nginx-controller.yml.j2

@ -112,7 +112,7 @@ spec:
path: /healthz path: /healthz
port: 10254 port: 10254
scheme: HTTP scheme: HTTP
initialDelaySeconds: 10
initialDelaySeconds: {{ ingress_nginx_probe_initial_delay_seconds }}
periodSeconds: 10 periodSeconds: 10
timeoutSeconds: 5 timeoutSeconds: 5
successThreshold: 1 successThreshold: 1
@ -122,7 +122,7 @@ spec:
path: /healthz path: /healthz
port: 10254 port: 10254
scheme: HTTP scheme: HTTP
initialDelaySeconds: 10
initialDelaySeconds: {{ ingress_nginx_probe_initial_delay_seconds }}
periodSeconds: 10 periodSeconds: 10
timeoutSeconds: 5 timeoutSeconds: 5
successThreshold: 1 successThreshold: 1

Loading…
Cancel
Save