OpenShift - List Ingress Routers using the oc get services command

If you are not familiar with the oc command, refer to OpenShift - Getting Started with the oc command.

An OpenShift route or an Ingress route will provide a URL such as which is used to route a request onto a service, which is then routed onto a pod, and then to the container in the pod, and finally to the application running in the container.


Like this.


Egress provides a way for an application deployed on OpenShift to access an external URL, such as


The Ingress Controllers and Ingress Routers are responsible for allowing external requests access to routes/services/pods/apps.

The oc get ingresscontroller command can be used to list the Ingress Controllers which are in the openshift-ingress-operator namespace.

~]$ oc get ingresscontroller --namespace openshift-ingress-operator
NAME              AGE
default           360d
external-router   356d
internal-router   356d


The oc get services command can be used to list the Ingress Routers which are in the openshift-ingress namespace.

~]$ oc get services --namespace openshift-ingress
NAME                              TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)                      AGE
router-internal-default           ClusterIP    <none>        80/TCP,443/TCP,1936/TCP      423d
router-internal-external-router   ClusterIP    <none>        80/TCP,443/TCP,1936/TCP      419d
router-internal-internal-router   ClusterIP   <none>        80/TCP,443/TCP,1936/TCP      419d
router-nodeport-external-router   NodePort      <none>        80:32080/TCP,443:32443/TCP   419d
router-nodeport-internal-router   NodePort   <none>        80:31080/TCP,443:31443/TCP   419d


The oc describe service command can be used to display more information about an Ingress Router.

~]$ oc describe service router-internal-default --namespace openshift-ingress
Name:              router-internal-default
Namespace:         openshift-ingress
Annotations: router-metrics-certs-default
Type:              ClusterIP
IP Family Policy:  SingleStack
IP Families:       IPv4
Port:              http  80/TCP
TargetPort:        http/TCP
Port:              https  443/TCP
TargetPort:        https/TCP
Port:              metrics  1936/TCP
TargetPort:        1936/TCP
Session Affinity:  None
Events:            <none>


Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee

Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter 78d69 in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |