Fix Route 503 OpenShift¶
Introduction¶
OpenShift Routes publish a Service through the cluster router. Route troubleshooting should confirm the route host, service target, endpoints, TLS termination mode, and router events.
Symptoms¶
Typical symptoms include failed pods, route errors, denied requests, unhealthy operators, or command errors that repeat after retries.
Common Causes¶
- Debugging the route before checking service endpoints.
- Using edge TLS when the backend expects passthrough TLS.
- Forgetting that route hostnames must be unique unless wildcard policy is configured.
Step 1: Check the Current Status¶
oc get route web -n app
oc describe route web -n app
oc get service web -n app
oc get endpoints web -n app
curl -Ik https://web-app.apps.ocp.example.com
Example output:
NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD
web web-app.apps.ocp.example.com web 8080 edge None
Step 2: Inspect Logs and Events¶
oc get route web -n app
oc get endpoints web -n app
curl -Ik https://web-app.apps.ocp.example.com
Step 3: Verify Configuration¶
Compare the object selectors, service account, image reference, route target, or operator status with the failing symptom. In OpenShift, events often show the exact admission, scheduling, pull, SCC, or route reason.
Example YAML¶
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: web
spec:
host: web-app.apps.ocp.example.com
to:
kind: Service
name: web
port:
targetPort: 8080
tls:
termination: edge
Step 4: Apply the Fix¶
Apply the smallest targeted fix: correct the selector, update the route or service port, link the pull secret, grant the specific RBAC or SCC permission, or repair the unhealthy operator dependency.
Step 5: Confirm the Problem Is Resolved¶
Run the verification commands again and confirm the status, events, and user-facing test all agree.
Common Mistakes¶
- Debugging the route before checking service endpoints.
- Using edge TLS when the backend expects passthrough TLS.
- Forgetting that route hostnames must be unique unless wildcard policy is configured.
Quick Checklist¶
- Confirm the active project.
- Inspect the exact object named in the error.
- Read recent events.
- Apply one focused fix.
- Verify status after the change.
Related Guides¶
Summary¶
Fix Route 503 OpenShift requires matching the symptom to the OpenShift object that owns it. Use oc status commands, events, logs, and focused verification so the fix is tied to evidence.