macmiranda commented on issue #343:
URL: 
https://github.com/apache/apisix-helm-chart/issues/343#issuecomment-1322125736

   > Ah, ok. I am not sure where I read this, because I cannot find it now, but 
I thought that IngressClass was required after 1.19.
   
   You can mark a particular IngressClass as default for your cluster. Setting 
the `ingressclass.kubernetes.io/is-default-class` annotation to `true` on an 
IngressClass resource will ensure that new Ingresses without an 
`ingressClassName` field specified will be assigned this default IngressClass.
   
   > Caution: If you have more than one IngressClass marked as the default for 
your cluster, the admission controller prevents creating new Ingress objects 
that don't have an ingressClassName specified. You can resolve this by ensuring 
that at most 1 IngressClass is marked as default in your cluster.
   
   There are some ingress controllers, that work without the definition of a 
default `IngressClass`. For example, the Ingress-NGINX controller can be 
configured with a 
[flag](https://kubernetes.github.io/ingress-nginx/#what-is-the-flag-watch-ingress-without-class)
 `--watch-ingress-without-class`. It is 
[recommended](https://kubernetes.github.io/ingress-nginx/#i-have-only-one-instance-of-the-ingresss-nginx-controller-in-my-cluster-what-should-i-do)
 though, to specify the default `IngressClass`
   
   Reference: 
https://kubernetes.io/docs/concepts/services-networking/ingress/#default-ingress-class


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to