Skip to content

Commit

Permalink
docs: fix inconsistent controller annotation (#8196)
Browse files Browse the repository at this point in the history
The annotation for the controller class was inconsistent in the example. From my best understanding, I have tried to fix the inconsistency.

Also, removed an incomplete sentence. And made one sentence more clear by breaking it up.
  • Loading branch information
sandipb committed Jan 27, 2022
1 parent 53ac0dd commit 6eecefd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/user-guide/multiple-ingress.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

By default, deploying multiple Ingress controllers (e.g., `ingress-nginx` & `gce`) will result in all controllers simultaneously racing to update Ingress status fields in confusing ways.

To fix this problem, use [IngressClasses](https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-class), the `kubernetes.io/ingress.class` annotation is deprecated from kubernetes v1.22+.
To fix this problem, use [IngressClasses](https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-class). The `kubernetes.io/ingress.class` annotation is deprecated from kubernetes v1.22+.

## Using IngressClasses

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`.
When two or more

First, ensure the `--controller-class=` and `--ingress-class` are set to something different on each ingress controller:

Expand All @@ -20,7 +19,7 @@ spec:
- name: ingress-nginx-internal-controller
args:
- /nginx-ingress-controller
- '--controller-class=k8s.io/internal-nginx'
- '--controller-class=k8s.io/internal-ingress-nginx'
- '--ingress-class=k8s.io/internal-nginx'
...
```
Expand Down

0 comments on commit 6eecefd

Please sign in to comment.