๐Ÿ“ Mastering OpenShift Routes and Ingress: External Access Simplified

Openshift RSH Network November 29, 2025 2 mins read

Learn how OpenShift Routes and Ingress controllers expose services securely and efficiently to external clients.

1. Introduction

OpenShift provides two primary mechanisms to expose internal services to the outside world: Routes and Ingress.
While Kubernetes relies heavily on Ingress resources, OpenShift extends this model with its own Route abstraction, tightly integrated with its native HAProxy router, offering more flexibility and ease of use.


2. ๐Ÿšช What Are OpenShift Routes?

An OpenShift Route maps a service to a DNS hostname, enabling external traffic to reach internal pods.

๐Ÿ”‘ Key Components

  • Hostname → Public DNS name clients use

  • Service → Backend target to receive traffic

  • TLS Terminationedge, passthrough, or reencrypt

๐Ÿ“„ Example Route YAML

 
apiVersion: route.openshift.io/v1 kind: Route metadata: name: my-app spec: host: myapp.rshnetwork.com to: kind: Service name: my-app-service tls: termination: edge insecureEdgeTerminationPolicy: Redirect

3. ๐ŸŒ Ingress Controllers in OpenShift

OpenShift fully supports Kubernetes-style Ingress resources through the Ingress Operator.

โœจ Benefits of Using Ingress

  • Declarative and standardized configuration

  • TLS configuration via annotations

  • Compatible with external tools like Nginx, Traefik, and Istio

Ingress is particularly useful when you want a multi-host or multi-path configuration similar to upstream Kubernetes.


4. ๐Ÿ”ง Best Practices

โœ”๏ธ Always configure TLS termination (edge or re-encrypt)
โœ”๏ธ Use edge termination + redirect to enforce HTTPS
โœ”๏ธ Regularly monitor route health:

 
oc get routes oc describe route <name>

โœ”๏ธ Prefer Routes for OpenShift-native deployments
โœ”๏ธ Use Ingress when integrating external ingress controllers or for advanced path-based routing


5. ๐Ÿงช Troubleshooting Tips

Check router logs

 
oc logs -n openshift-ingress router-<pod>

Verify DNS & Certificate

  • Ensure DNS resolves to the OpenShift ingress IP

  • Confirm certificate chain using:

 
openssl s_client -connect myapp.rshnetwork.com:443 -showcerts

Inspect traffic with curl

 
curl -v https://myapp.rshnetwork.com

Useful for checking headers, TLS handshake, and redirects.

Advertisement

R
RSH Network

39 posts published

Sign in to subscribe to blog updates