Setting the Ingress Controller to private
You can configure the default Ingress Controller to use an internal endpoint so that application routes are published only in the private DNS zone.
After you deploy a cluster, you can modify its Ingress Controller to use only a private zone.
Procedure
-
Modify the default Ingress Controller to use only an internal endpoint:
$ oc replace --force --wait --filename - <<EOF apiVersion: operator.openshift.io/v1 kind: IngressController metadata: namespace: openshift-ingress-operator name: default spec: endpointPublishingStrategy: type: LoadBalancerService loadBalancer: scope: Internal EOFExample outputingresscontroller.operator.openshift.io "default" deleted ingresscontroller.operator.openshift.io/default replacedThe public DNS entry is removed, and the private zone entry is updated.