Create TLS edge route in OpenShift

An OpenShift route will provide a URL such as http://myroute-myproject.apps.openshift.example.com which is used to route a request onto a service, which is then routed onto a pod.

Secured routes are secured with TLS by providing a key and certificate.

Edge termination route - the connection is encrypted until it reaches the OpenShift router. All communication till the router is secured, and any communication from the router to the endpoints is not.

To create an edge route with custom certificate, CA and key:

oc create route edge myroute --service securenginx100 --cert=openssl/tls.crt --key=openssl/tls.key --ca-cert=openssl/myCA.pem