OpenShift - List OpenShift DNS URLs

By default, OpenShift has the following URLs.

  • https://api.<basename>
  • https://apps.<basename>
  • https://console.<basename>
  • https://logs.<basename>
  • https://metrics.<basename>
  • https://registry.<basename>


The API URL (e.g. is used to submit REST API calls to OpenShift. The oc config view command can be used to return the API Server HTTPS URL.

~]$ oc config view
apiVersion: v1
- cluster:



The "apps" URL (e.g. is used to submit a request into (ingress) an app running on OpenShift. The oc get ingresses.config command can be used to return the apps URL.

~]$ oc get ingresses.config cluster --output jsonpath={.spec.domain}


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.



The first time you deploy an application, the application should be pulled down from the online repository that contains the image, such as the online repository or the online repository, and stored in your internal OpenShift registry, such as image-registry.openshift-image-registry.svc:5000. In the openshift-image-registry namespace, there should be an image-registry deployment that contains an environment variable REGISTRY_OPENSHIFT_SERVER_ADDR which will have the registry URL.

~]$ oc get deployment image-registry --namespace openshift-image-registry --output yaml
          value: image-registry.openshift-image-registry.svc:5000


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 9463e in the box below so that we can be sure you are a human.


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