FreeKB - OpenShift List Routes using the oc describe route command
OpenShift - List Routes using the oc describe route command

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

Before issuing the oc describe route command, issue the oc login command, then the oc project command to select the project routes, and then then oc get routes command to display the routes. Let's say the oc get routes command returns the following.

~]# oc get routes
NAME            HOST/PORT         PATH   SERVICES     PORT     TERMINATION          WILDCARD
route001        example.com              service001   12345    reencrypt/Redirect   None

 

The oc describe route command can be used to show more information on the route named route001.

~]# oc describe route/route001

Name:                   route001
Namespace:              project001
Created:                7 days ago
Labels:                 app=app001
                        route-type=default
                        velero.io/backup-name=ef0cd250-04c7-11eb-8fe1-67064a920610-shfm6
                        velero.io/restore-name=ef0cd250-04c7-11eb-8fe1-67064a920610-t9jf5
Annotations:            kubectl.kubernetes.io/last-applied-configuration={"apiVersion":"route.openshift.io/v1","kind":"Route","metadata":{"annotations":{"openshift.io/backup-registry-hostname":"docker-registry.default.svc:5000","openshift.io/backup-server-version":"1.11","openshift.io/restore-registry-hostname":"image-registry.openshift-image-registry.svc:5000","openshift.io/restore-server-version":"1.18"},"creationTimestamp":"2020-10-02T15:59:00Z","labels":{"app":"prom","route-type":"default","velero.io/backup-name":"ef0cd250-04c7-11eb-8fe1-67064a920610-shfm6","velero.io/restore-name":"ef0cd250-04c7-11eb-8fe1-67064a920610-t9jf5"},"managedFields":[{"apiVersion":"route.openshift.io/v1","fieldsType":"FieldsV1","fieldsV1":{"f:status":{"f:ingress":{}}},"manager":"openshift-router","operation":"Update","time":"2020-10-02T15:59:00Z"},{"apiVersion":"route.openshift.io/v1","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:openshift.io/backup-registry-hostname":{},"f:openshift.io/backup-server-version":{},"f:openshift.io/restore-registry-hostname":{},"f:openshift.io/restore-server-version":{}},"f:labels":{".":{},"f:app":{},"f:route-type":{},"f:velero.io/backup-name":{},"f:velero.io/restore-name":{}}},"f:spec":{"f:host":{},"f:port":{".":{},"f:targetPort":{}},"f:tls":{".":{},"f:insecureEdgeTerminationPolicy":{},"f:termination":{}},"f:to":{"f:kind":{},"f:name":{},"f:weight":{}},"f:wildcardPolicy":{}}},"manager":"velero-server","operation":"Update","time":"2020-10-02T15:59:00Z"}],"name":"prom","namespace":"project001","resourceVersion":"2300733","selfLink":"/apis/route.openshift.io/v1/namespaces/project001/routes/route001","uid":"68ec63ff-df8d-4773-a6c0-0ddbdbe71f8a"},"spec":{"host":"route001-project001.apps.example.com","port":{"targetPort":"prometheus"},"tls":{"insecureEdgeTerminationPolicy":"Redirect","termination":"reencrypt"},"to":{"kind":"Service","name":"service001","weight":100},"wildcardPolicy":"None"},"status":{"ingress":[{"conditions":[{"lastTransitionTime":"2020-10-02T15:59:00Z","status":"True","type":"Admitted"}],"host":"route001-project001.apps.example.com","routerCanonicalHostname":"apps.example.com","routerName":"default","wildcardPolicy":"None"}]}}

                        openshift.io/backup-registry-hostname=docker-registry.default.svc:5000
                        openshift.io/backup-server-version=1.11
                        openshift.io/restore-registry-hostname=image-registry.openshift-image-registry.svc:5000
                        openshift.io/restore-server-version=1.18
Requested Host:         route001-project001.apps.example.com
                          exposed on router default (host apps.example.com) 7 days ago
Path:                   <none>
TLS Termination:        reencrypt
Insecure Policy:        Redirect
Endpoint Port:          prometheus

Service:        service001
Weight:         100 (100%)
Endpoints:      <error: endpoints "route001" not found>

 



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




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |