Configuring Services custom ingress class
The networking-config
ConfigMap is configured when Knative Serving is installed, and if no other ingress class is specified, this defaults to .
After it is configured in the networking-config
ConfigMap, the ingress.class
is used for all Knative Services that do not specify an ingress.class
annotation.
The ingress class value should only be modified during Knative Serving installation to avoid issues in your deployment.
Generally it is recommended for Knative Services to use the default . However, in scenarios where there are multiple networking implementations, you might want to specify different ingress class annotations for each Service.
To add an ingress class annotation to a Service, run the following command:
Where:
This annotation overrides the configuration specified in the ConfigMap.