Skip to content

Commit 66cbd57

Browse files
authored
Improve docs for multiple instances of controller on one cluster (#10882)
* Added note to include '--ingress-class-by-name=true' for Multiple Ingress controllers instruction. * Add note to include '-ingress-class-by-name=true' for Multiple Controllers instruction.
1 parent bf84f0e commit 66cbd57

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/user-guide/multiple-ingress.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ But, when user has deployed with `scope.enabled`, then the ingress class resourc
1010

1111
If all ingress controllers respect IngressClasses (e.g. multiple instances of ingress-nginx v1.0), you can deploy two Ingress controllers by granting them control over two different IngressClasses, then selecting one of the two IngressClasses with `ingressClassName`.
1212

13-
First, ensure the `--controller-class=` and `--ingress-class` are set to something different on each ingress controller, If your additional ingress controller is to be installed in a namespace, where there is/are one/more-than-one ingress-nginx-controller(s) already installed, then you need to specify a different unique `--election-id` for the new instance of the controller.
13+
First, ensure the `--controller-class=` and `--ingress-class` are set to something different on each ingress controller, If your additional ingress controller is to be installed in a namespace, where there is/are one/more-than-one ingress-nginx-controller(s) already installed, then you need to specify a different unique `--election-id` for the new instance of the controller.
14+
15+
In addition, you need to specify `--ingress-class-by-name=true` in the controller args list. The `--ingress-class-by-name` defines if Ingress Controller should watch for Ingress Class by Name together with Controller Class. (default false).
1416

1517
```yaml
1618
# ingress-nginx Deployment/Statefulset
@@ -24,6 +26,7 @@ spec:
2426
- '--election-id=ingress-controller-leader'
2527
- '--controller-class=k8s.io/internal-ingress-nginx'
2628
- '--ingress-class=internal-nginx'
29+
- '--ingress-class-by-name=true'
2730
...
2831
```
2932

0 commit comments

Comments
 (0)