OpenShift Scenario Interviews: Trace a Failed Application Request
OpenShift scenario answers should trace the failed request through the relevant layers and use the supplied evidence to choose the next check. A visible Route does not prove a Service selects healthy application endpoints, and a running Pod does not prove the application is ready. The fictional case here is an externally failing service after a label change.
Topic: OpenShift in IT Infrastructure · Explainer
Quick answer: OpenShift scenario answers should trace the failed request through the relevant layers and use the supplied evidence to choose the next check. A visible Route does not prove a Service selects healthy application endpoints, and a running Pod does not prove the application is ready. The fictional case here is an externally failing service after a label change. References use OpenShift Container Platform 5.0, with upstream Kubernetes concepts identified separately; no cluster operation is performed.
Key takeaways
- Ask which cluster version and workload context the prompt uses.
- Trace the request before changing capacity or restarting Pods.
- Compare Service selectors with the intended workload labels.
- Interpret readiness and restart evidence separately.
- Treat storage provisioning as its own evidence question.
Table of Contents
- Which platform details should you establish first?
- How would you investigate the fictional Route failure?
- What would establish a Service selector mismatch?
- How do deployment and readiness details change the response?
- What if the prompt changes to CrashLoopBackOff?
- What if a workload is waiting for persistent storage instead?
- What should your final interview answer validate?
- References
Which platform details should you establish first?
Ask for the OpenShift version, installation model, affected namespace and application impact. The OpenShift 5.0 release guide is the versioned reference used here. A command or default remembered from an older deployment should be checked against the environment in the question before being recommended.
Keep the interview answer proportional to the prompt. An application failure may need a workload owner’s review, while widespread control-plane symptoms need a different response route. State the known boundary: one service, one namespace or a broader outage. If the interviewer has not supplied that information, ask instead of assuming every OpenShift problem requires a cluster-wide administrative change.
How would you investigate the fictional Route failure?
The fictional application worked before a deployment label changed. DNS resolves, the browser reaches the expected TLS endpoint and the application response fails. Two new Pods are reported ready, but no Service endpoint evidence has been supplied. The OpenShift 5.0 Route guide describes the OpenShift Route layer.
Start by checking whether the Route targets the intended Service and port, then whether that Service selects the intended workload. Working DNS and TLS do not establish that all later request layers work. Scaling the ready Pods would not resolve a selector that matches none of them. Preserve the current object relationships and error before proposing a change.
| Given observation | What it narrows | What remains unverified |
|---|---|---|
| DNS resolves | Name lookup returned an address | Route target and application endpoints |
| Expected TLS endpoint reached | Connection reached that endpoint | Successful forwarding to the application |
| Two Pods reported ready | Some workloads pass their readiness checks | Whether the Service selects those Pods |
| Label changed before failure | A relevant change exists | Whether selector mismatch is the cause |
What would establish a Service selector mismatch?
The Kubernetes Service troubleshooting guide explains how Service selectors relate to Pods and EndpointSlices. In the invented worksheet, the Service selects component=orders-old, while the intended new Pods carry component=orders-new. If no other matching ready endpoints exist, that relationship explains why adding more similarly labelled new Pods would not satisfy the old selector.
This is a diagnosis to verify against the full supplied objects, not permission to change production labels blindly. Ask the application owner which selection was intended and whether another controller manages those fields. An approved correction needs a narrowly defined change and a request-level validation. Keep the old and proposed relationships visible so the reviewer can assess the effect.
How do deployment and readiness details change the response?
The OpenShift 5.0 deployment guide distinguishes deployment mechanisms and states that DeploymentConfig has been deprecated since 4.14, while remaining supported with limits in the referenced documentation. For new declarative workload decisions, do not present it as an interchangeable default choice without reviewing the version’s guidance.
Readiness, available replicas and successful application behaviour are related but separate observations. A readiness check may cover less than the full user transaction. In this case, confirm which controller owns the new Pods and what their labels and health checks mean. A rollout showing progress does not independently prove the Route-to-Service-to-application path meets the user’s request.
What if the prompt changes to CrashLoopBackOff?
The Kubernetes Pod lifecycle guide explains container restart behaviour and backoff. CrashLoopBackOff describes a repeated container-start failure condition shown during troubleshooting; it should not be treated as a final root cause. Ask for the failing container, relevant previous termination information, events and application logs.
A missing configuration value, failed dependency or unsuitable health check could lead to different fixes. Do not assume every restart loop needs more CPU or a Pod deletion. Relate the evidence to the last change and determine who owns the configuration. Any proposed action should state the expected effect and how the application owner will confirm the problem is resolved.
What if a workload is waiting for persistent storage instead?
The OpenShift 5.0 persistent storage guide explains persistent volumes and claims. A pending claim needs its storage class, requested access mode, size, provisioning events and relevant scheduling context reviewed. Dynamic provisioning and delayed binding can affect the interpretation, so “no available static PV” is not enough to prescribe creating one.
Keep storage evidence separate from the Route case unless it actually explains the workload’s failure. Ask whether the claim belongs to the application and whether the storage provider is healthy. A data-bearing object should not be deleted merely to clear a status. The owner needs the intended storage behaviour and recovery requirements before an administrator proposes a change.
| Scenario | First evidence question | Premature action |
|---|---|---|
| Route fails after label change | Which Pods does the Service select? | Increase replica count without checking selection |
| Repeated container restart | What terminated and why? | Delete the Pod as the complete diagnosis |
| Claim remains pending | What do provisioning and binding events say? | Create or remove storage without context |
What should your final interview answer validate?
State the failed user operation and the evidence that narrows its cause. Identify the owner and proposed correction, then explain how an approved test would demonstrate success. For the invented label mismatch, validation should cover the intended endpoint selection and the actual application request, not merely whether the object update was accepted.
Mention any remaining uncertainty and the relevant versioned procedure. You can demonstrate this reasoning with a paper object map and invented observations; a live cluster story is useful only if it is genuinely yours to discuss. Keep credentials, tenant details and customer data out of practice material.
Related reading: Prepare administration responsibility answers; Discuss upgrade and recovery judgment.
References
Frequently Asked Questions
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Wow
0
Sad
0
Angry
0