From c605a51dc61d940f61600fa8f2799d486fcbd504 Mon Sep 17 00:00:00 2001 From: Sergey Date: Thu, 28 Oct 2021 21:48:59 +0300 Subject: [PATCH] nginx ingress controller should watch kind:ingress without class (#8128) (cherry picked from commit 0b441ade2c10f42093c182112f4f9e71782cc104) --- .../ingress_nginx/templates/ds-ingress-nginx-controller.yml.j2 | 2 ++ 1 file changed, 2 insertions(+) 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 d397176cc04..6a71803c153 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 @@ -52,6 +52,8 @@ spec: - --annotations-prefix=nginx.ingress.kubernetes.io {% if ingress_nginx_class is defined %} - --ingress-class={{ ingress_nginx_class }} +{% else %} + - --watch-ingress-without-class=true {% endif %} {% if ingress_nginx_host_network %} - --report-node-internal-ip-address