Hi There,
I have a question regarding ingress resources, How does an ingress resource find the ingress controller service despite of not using labels/selectors on the ingress resource?
Regards
Hi There,
I have a question regarding ingress resources, How does an ingress resource find the ingress controller service despite of not using labels/selectors on the ingress resource?
Regards
Hi,
Ingress resources use the kubernetes.io/ingress.class
annotation to match with the correct ingress controller.
The kubernetes.io/ingress.class
annotation is not being preferred or suggested to use as it can be deprecated in future. Better to use the field ingress.spec.ingressClassName
. But, when user has deployed with scope.enabled
, then the ingress class resource field is not used.
For your reference:
https://kubernetes.github.io/ingress-nginx/user-guide/multiple-ingress/