Add explainatory comments about configmap name
This commit is contained in:
parent
cfef9986e7
commit
b84c9b4eea
2 changed files with 20 additions and 1 deletions
|
@ -46,8 +46,23 @@ granted to the ClusterRole named `nginx-ingress-clusterrole`
|
||||||
These permissions are granted specific to the nginx-ingress namespace. These
|
These permissions are granted specific to the nginx-ingress namespace. These
|
||||||
permissions are granted to the Role named `nginx-ingress-role`
|
permissions are granted to the Role named `nginx-ingress-role`
|
||||||
|
|
||||||
* `configmaps`, `pods`, `secrets`: get
|
|
||||||
* `endpoints`: create, get, update
|
* `endpoints`: create, get, update
|
||||||
|
* `pods`, `secrets`: get
|
||||||
|
|
||||||
|
Furthermore to support leader-election, the nginx-ingress-controller needs to
|
||||||
|
have access to a `configmap` using the resourceName `ingress-controller-leader-nginx`
|
||||||
|
|
||||||
|
* `configmaps`: create, get, update (for resourceName `ingress-controller-leader-nginx`)
|
||||||
|
|
||||||
|
This resourceName is the concatenation of the `election-id` and the
|
||||||
|
`ingress-class` as defined by the ingress-controller, which default to:
|
||||||
|
|
||||||
|
* `election-id`: `ingress-controller-leader`
|
||||||
|
* `ingress-class`: `nginx`
|
||||||
|
* `resourceName` : `<election-id>-<ingress-class>`
|
||||||
|
|
||||||
|
Please adapt accordingly if you overwrite either parameter when launching the
|
||||||
|
nginx-ingress-controller.
|
||||||
|
|
||||||
### Bindings
|
### Bindings
|
||||||
|
|
||||||
|
|
|
@ -73,6 +73,10 @@ rules:
|
||||||
resources:
|
resources:
|
||||||
- configmaps
|
- configmaps
|
||||||
resourceNames:
|
resourceNames:
|
||||||
|
# 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.
|
||||||
- "ingress-controller-leader-nginx"
|
- "ingress-controller-leader-nginx"
|
||||||
verbs:
|
verbs:
|
||||||
- create
|
- create
|
||||||
|
|
Loading…
Reference in a new issue