diff --git a/index.html b/index.html index 1e34fb55b..f2ef47e48 100644 --- a/index.html +++ b/index.html @@ -71,7 +71,7 @@ args: - --watch-ingress-without-class=true ... ... -
No problem. This should still keep working, but we highly recommend you to test!
In this scenario, you need to create multiple ingressClasses (see example one). But be aware that ingressClass works in a very specific way: you will need to change the .spec.controller value in your IngressClass and point the controller to the relevant ingressClass. Let's see some example, supposing that you have two Ingress Classes:
--controller-class field as follows:Ingress-Nginx-Controller-nginx1 with k8s.io/ingress-nginx1 Ingress-Nginx-Controller-nginx2 with k8s.io/ingress-nginx2 Then, when you create an Ingress Object with IngressClassName = ingress-nginx2, it will look for controllers with controller-class=k8s.io/ingress-nginx2 and as Ingress-Nginx-Controller-nginx2 is watching objects that points to ingressClass="k8s.io/ingress-nginx2, it will serve that object, while Ingress-Nginx-Controller-nginx1 will ignore the ingress object.
Bear in mind that, if your Ingress-Nginx-Controller-nginx2 is started with the flag --watch-ingress-without-class=true, then it will serve ; - objects without ingress-class - objects with the annotation configured in flag --ingress-class and same class value - and also objects pointing to the ingressClass that have the same .spec.controller as configured in --controller-class