Co-authored-by: Mohamed Omar Zaian <mohamedzaian@gmail.com>pull/11287/head
parent
b83dc9da63
commit
b9fdda43c3
|
@ -48,6 +48,7 @@ spec:
|
||||||
args:
|
args:
|
||||||
- /nginx-ingress-controller
|
- /nginx-ingress-controller
|
||||||
- --configmap=$(POD_NAMESPACE)/ingress-nginx
|
- --configmap=$(POD_NAMESPACE)/ingress-nginx
|
||||||
|
- --election-id=ingress-controller-leader-{{ ingress_nginx_class }}
|
||||||
- --tcp-services-configmap=$(POD_NAMESPACE)/tcp-services
|
- --tcp-services-configmap=$(POD_NAMESPACE)/tcp-services
|
||||||
- --udp-services-configmap=$(POD_NAMESPACE)/udp-services
|
- --udp-services-configmap=$(POD_NAMESPACE)/udp-services
|
||||||
- --annotations-prefix=nginx.ingress.kubernetes.io
|
- --annotations-prefix=nginx.ingress.kubernetes.io
|
||||||
|
|
|
@ -28,23 +28,17 @@ rules:
|
||||||
verbs: ["get", "list", "watch"]
|
verbs: ["get", "list", "watch"]
|
||||||
- apiGroups: ["coordination.k8s.io"]
|
- apiGroups: ["coordination.k8s.io"]
|
||||||
resources: ["leases"]
|
resources: ["leases"]
|
||||||
# Defaults to "<election-id>-<ingress-class>"
|
# Defaults to "<election-id>", defined in
|
||||||
# Here: "<ingress-controller-leader>-<nginx>"
|
# ds-ingress-nginx-controller.yml.js
|
||||||
# This has to be adapted if you change either parameter
|
# by a command-line argument.
|
||||||
# when launching the nginx-ingress-controller.
|
#
|
||||||
|
# This is the correct behaviour for ingress-controller
|
||||||
|
# version 1.8.1
|
||||||
resourceNames: ["ingress-controller-leader-{{ ingress_nginx_class }}"]
|
resourceNames: ["ingress-controller-leader-{{ ingress_nginx_class }}"]
|
||||||
verbs: ["get", "update"]
|
verbs: ["get", "update"]
|
||||||
- apiGroups: [""]
|
- apiGroups: [""]
|
||||||
resources: ["events"]
|
resources: ["events"]
|
||||||
verbs: ["create", "patch"]
|
verbs: ["create", "patch"]
|
||||||
- apiGroups: ["coordination.k8s.io"]
|
|
||||||
resources: ["leases"]
|
|
||||||
# Defaults to "<election-id>-<ingress-class>"
|
|
||||||
# Here: "<ingress-controller-leader>-<nginx>"
|
|
||||||
# This has to be adapted if you change either parameter
|
|
||||||
# when launching the nginx-ingress-controller.
|
|
||||||
resourceNames: ["ingress-controller-leader-{{ ingress_nginx_class }}"]
|
|
||||||
verbs: ["get", "update"]
|
|
||||||
- apiGroups: ["coordination.k8s.io"]
|
- apiGroups: ["coordination.k8s.io"]
|
||||||
resources: ["leases"]
|
resources: ["leases"]
|
||||||
verbs: ["create"]
|
verbs: ["create"]
|
||||||
|
|
Loading…
Reference in New Issue