$ oc get ingressclass
You can update or modify the following fields of existing ingress objects without recreating the objects or disrupting services to these objects:
Specifications
Host
Path
Backend services
SSL/TLS settings
Annotations
To prevent certain routing issues, you must define define the ingressClassName field for each ingress object.
|
Approximately 24 hours after you create an |
The procedure demonstrates patching the ingress objects with a completed ingressClassName field to ensure proper routing and functionality.
List all ingressClass objects:
$ oc get ingressclass
List all ingress objects in all namespaces:
$ oc get ingress -A
Patch the ingress object by running the following command. This command patches the ingress object to include the desired ingress class name.
$ oc patch ingress/<ingress_name> --type=merge --patch '{"spec":{"ingressClassName":"openshift-default"}}'
<ingress_name>: Replace <ingress_name> with the name of the ingress object.