From 958840da892ddf80dac9c7f5ca49062378254fa7 Mon Sep 17 00:00:00 2001 From: Vladimir <31961982+zvlb@users.noreply.github.com> Date: Thu, 20 Oct 2022 07:20:56 +0300 Subject: [PATCH] Add var for control initialDelaySeconds in nginx ingress probe (#9405) Signed-off-by: Zemtsov Vladimir Signed-off-by: Zemtsov Vladimir --- .../ingress_controller/ingress_nginx/defaults/main.yml | 2 ++ .../templates/ds-ingress-nginx-controller.yml.j2 | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/kubernetes-apps/ingress_controller/ingress_nginx/defaults/main.yml b/roles/kubernetes-apps/ingress_controller/ingress_nginx/defaults/main.yml index 21ea68c9d..10cf1a7fc 100644 --- a/roles/kubernetes-apps/ingress_controller/ingress_nginx/defaults/main.yml +++ b/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_webhook_enabled: false ingress_nginx_webhook_job_ttl: 1800 + +ingress_nginx_probe_initial_delay_seconds: 10 \ No newline at end of file diff --git a/roles/kubernetes-apps/ingress_controller/ingress_nginx/templates/ds-ingress-nginx-controller.yml.j2 b/roles/kubernetes-apps/ingress_controller/ingress_nginx/templates/ds-ingress-nginx-controller.yml.j2 index a405385c6..6ab424983 100644 --- a/roles/kubernetes-apps/ingress_controller/ingress_nginx/templates/ds-ingress-nginx-controller.yml.j2 +++ b/roles/kubernetes-apps/ingress_controller/ingress_nginx/templates/ds-ingress-nginx-controller.yml.j2 @@ -112,7 +112,7 @@ spec: path: /healthz port: 10254 scheme: HTTP - initialDelaySeconds: 10 + initialDelaySeconds: {{ ingress_nginx_probe_initial_delay_seconds }} periodSeconds: 10 timeoutSeconds: 5 successThreshold: 1 @@ -122,7 +122,7 @@ spec: path: /healthz port: 10254 scheme: HTTP - initialDelaySeconds: 10 + initialDelaySeconds: {{ ingress_nginx_probe_initial_delay_seconds }} periodSeconds: 10 timeoutSeconds: 5 successThreshold: 1