when ingress-nginx is deployes without a class, we need to use 'ingress-controller-leader' resource instead of the default 'ingress-controller-leader-nginx' (#9156)
This commit is contained in:
parent
7e862939db
commit
8585134db4
1 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,7 @@ rules:
|
||||||
# Here: "<ingress-controller-leader>-<nginx>"
|
# Here: "<ingress-controller-leader>-<nginx>"
|
||||||
# This has to be adapted if you change either parameter
|
# This has to be adapted if you change either parameter
|
||||||
# when launching the nginx-ingress-controller.
|
# when launching the nginx-ingress-controller.
|
||||||
resourceNames: ["ingress-controller-leader-{{ ingress_nginx_class | default('nginx') }}"]
|
resourceNames: [{% if ingress_class is defined %}"ingress-controller-leader-{{ ingress_nginx_class | default('nginx') }}"{% else %}"ingress-controller-leader"{% endif %}]
|
||||||
verbs: ["get", "update"]
|
verbs: ["get", "update"]
|
||||||
- apiGroups: ["coordination.k8s.io"]
|
- apiGroups: ["coordination.k8s.io"]
|
||||||
resources: ["leases"]
|
resources: ["leases"]
|
||||||
|
@ -40,7 +40,7 @@ rules:
|
||||||
# Here: "<ingress-controller-leader>-<nginx>"
|
# Here: "<ingress-controller-leader>-<nginx>"
|
||||||
# This has to be adapted if you change either parameter
|
# This has to be adapted if you change either parameter
|
||||||
# when launching the nginx-ingress-controller.
|
# when launching the nginx-ingress-controller.
|
||||||
resourceNames: ["ingress-controller-leader-{{ ingress_nginx_class | default('nginx') }}"]
|
resourceNames: [{% if ingress_class is defined %}"ingress-controller-leader-{{ ingress_nginx_class | default('nginx') }}"{% else %}"ingress-controller-leader"{% endif %}]
|
||||||
verbs: ["get", "update"]
|
verbs: ["get", "update"]
|
||||||
- apiGroups: [""]
|
- apiGroups: [""]
|
||||||
resources: ["configmaps"]
|
resources: ["configmaps"]
|
||||||
|
@ -58,7 +58,7 @@ rules:
|
||||||
# Here: "<ingress-controller-leader>-<nginx>"
|
# Here: "<ingress-controller-leader>-<nginx>"
|
||||||
# This has to be adapted if you change either parameter
|
# This has to be adapted if you change either parameter
|
||||||
# when launching the nginx-ingress-controller.
|
# when launching the nginx-ingress-controller.
|
||||||
resourceNames: ["ingress-controller-leader-{{ ingress_nginx_class | default('nginx') }}"]
|
resourceNames: [{% if ingress_class is defined %}"ingress-controller-leader-{{ ingress_nginx_class | default('nginx') }}"{% else %}"ingress-controller-leader"{% endif %}]
|
||||||
verbs: ["get", "update"]
|
verbs: ["get", "update"]
|
||||||
- apiGroups: ["coordination.k8s.io"]
|
- apiGroups: ["coordination.k8s.io"]
|
||||||
resources: ["leases"]
|
resources: ["leases"]
|
||||||
|
|
Loading…
Reference in a new issue