$ oc get ingressclass
You can update or modify the following fields of existing Ingress objects without recreating the objects or disrupting services to them:
Specifications
Host
Path
Backend services
SSL/TLS settings
Annotations
The ingressClassName field specifies the name of the IngressClass object. You must define the ingressClassName field for each Ingress object.
If you have not defined the ingressClassName field for an Ingress object, you could experience routing issues. After 24 hours, you will receive an ingressWithoutClassName alert to remind you to set the ingressClassName field.
Patch 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:
$ oc patch ingress/<ingress_name> --type=merge --patch '{"spec":{"ingressClassName":"openshift-default"}}'
Replace <ingress_name> with the name of the Ingress object. This command patches the Ingress object to include the desired ingress class name.