IngressClass in Kubernetes allows Ingress
definitions to be processed by different controllers. Kong Ingress Controller reconciles any resources attached to a resource that has an IngressClass
of kong
. This IngressClass
can be set in the spec.ingressClassName
field, or using the kubernetes.io/ingress.class
annotation.
kong
is the default value and can be changed using the--ingress-class
CLI flag, or theCONTROLLER_INGRESS_CLASS
environment variable.
If the IngressClass
used by Kong Ingress Controller (specified in flag --ingress-class
) has ingressclass.kubernetes.io/is-default-class
set to true
, all resources that don’t have an explicit Ingress Class set are also reconciled by Kong Ingress Controller. This doesn’t include Gateway API resources.