Home › Interview questions › OpenShift
OpenShift Interview Questions & Answers
54 OpenShift interview questions in 4 levels — junior to senior, plus 10 production scenarios. Read 3 free answers with real-world analogies.
Free sample answers
What is OpenShift, and how is it different from plain Kubernetes?
One-liner
OpenShift is Red Hat's enterprise Kubernetes platform, adding built-in developer tooling, security defaults, and operational features on top of vanilla Kubernetes.
Real-world analogy
Kubernetes is like a car engine — powerful but needs you to build the rest of the car around it; OpenShift is the fully assembled car with a dashboard, safety features, and a service plan already included.
Detailed explanation
- OpenShift bundles a built-in container registry, CI/CD tooling (via Builds and Pipelines), and a web console designed for both developers and operators.
- It enforces stricter default security policies (like disallowing containers from running as root by default) compared to vanilla Kubernetes, which has more permissive defaults.
- OpenShift adds its own resource types (like Routes and DeploymentConfigs, alongside standard Kubernetes objects) that provide additional functionality beyond the open-source Kubernetes API.
Scenario
A team migrating from vanilla Kubernetes to OpenShift finds their existing container images failing to start, with permission errors. What's the most likely cause?
Best practices
- Design container images to run as non-root by default, since OpenShift enforces this more strictly than plain Kubernetes.
- Take advantage of OpenShift's built-in tooling (registry, CI/CD) rather than standing up separate infrastructure for things it already provides.
- Understand OpenShift-specific resources (Routes, DeploymentConfigs) as extensions to, not replacements for, standard Kubernetes concepts.
How do you approach upgrading an OpenShift cluster with minimal disruption, given that OpenShift manages its own control plane and node upgrades differently from vanilla Kubernetes?
One-liner
OpenShift's Cluster Version Operator manages upgrades in a more automated, coordinated way than typical manual Kubernetes upgrades, but this still requires understanding upgrade paths, checking Operator compatibility, and validating in a non-production cluster first.
Real-world analogy
It's like a car that can mostly auto-update its own software, but you still need to check that all your aftermarket accessories are compatible with the new version before letting the update proceed on your daily driver.
Detailed explanation
- The Cluster Version Operator (CVO) orchestrates the upgrade of cluster components in a defined, tested order, reducing much of the manual coordination that vanilla Kubernetes upgrades often require.
- Operators installed via OperatorHub need their own compatibility with the target OpenShift version checked before upgrading, since an incompatible Operator can break after a platform upgrade even if the core upgrade itself succeeds.
- Testing upgrades in a non-production cluster mirroring production's installed Operators and workloads remains essential, since the CVO's automation reduces manual toil but doesn't eliminate the need for validation.
Scenario
Your organization needs to upgrade a production OpenShift cluster running several Operators from OperatorHub, and wants to minimize the risk of the upgrade breaking any of them. What would you check before proceeding?
Best practices
- Verify Operator compatibility with the target OpenShift version before initiating an upgrade.
- Test upgrades in a non-production cluster mirroring production's actual installed components first.
- Rely on the Cluster Version Operator's automation for core upgrade orchestration, but don't skip validation because of it.
An application's Route suddenly stops working, returning a 503 error, even though the underlying Pods appear healthy and running. How do you investigate?
One-liner
Check whether the Service the Route points to actually has matching, ready Endpoints, since a 503 from a Route commonly means the router can't find any healthy backend to send traffic to, even if the Pods themselves show as 'Running.'
Real-world analogy
It's like a receptionist correctly directing visitors toward a specific office, but finding the office locked with nobody actually able to receive them — the direction is right, but nobody's actually available to answer the door.
Detailed explanation
- Check oc get endpoints for the Service the Route targets — if there are no endpoints listed, the Service's label selector likely doesn't match any currently running Pods, even if Pods matching a similar-looking label exist.
- Check the Pod's readiness probe status specifically — a Pod can show as 'Running' while still failing its readiness probe, which excludes it from Service endpoints entirely.
- Check for a recent label or selector change on either the Deployment or the Service that might have silently broken the connection between them.
Scenario
This is itself the scenario — walk through your exact diagnostic steps to determine why the Route can't find a healthy backend despite Pods appearing to run fine.
Best practices
- Check Service endpoints directly rather than assuming healthy-looking Pods guarantee a working Service-to-Pod connection.
- Check readiness probe status specifically, since 'Running' doesn't mean 'Ready.'
- Audit recent label/selector changes as a common, easy-to-miss cause of a broken Service-to-Pod link.
A preview of the 54 questions in the OpenShift guide
Junior (21)
- What is OpenShift, and how is it different from plain Kubernetes?
- What is a Route in OpenShift, and how is it different from a Kubernetes Ingress?
- What is a Project in OpenShift, and how does it relate to a Kubernetes Namespace?
- What is a BuildConfig in OpenShift?
+ 17 more Junior questions, with full answers, in the guide.
Mid-level (14)
- How would you design a multi-tenant OpenShift cluster shared by multiple teams, using Projects and quotas effectively?
- How does OpenShift's approach to routing and TLS termination (via Routes) compare to using a full Kubernetes Ingress controller, in terms of operational trade-offs?
- How would you troubleshoot a Pod that's stuck in a CrashLoopBackOff state specifically due to an OpenShift SCC restriction, versus an application-level bug?
- How would you design a CI/CD pipeline for OpenShift that takes advantage of both BuildConfigs and an external tool like Tekton (OpenShift Pipelines)?
+ 10 more Mid-level questions, with full answers, in the guide.
Senior (9)
- How would you design an OpenShift platform strategy for a large enterprise with dozens of teams, balancing self-service developer experience with centralized security and compliance requirements?
- How do you evaluate the trade-off between OpenShift's stronger default security posture and opinionated tooling versus the flexibility of a more minimal, vanilla Kubernetes distribution for a new enterprise platform decision?
- How would you architect disaster recovery for a critical OpenShift-based application, accounting for both the application layer and OpenShift-specific platform components (like BuildConfigs, ImageStreams, and Routes)?
- How would you approach cost optimization for a large OpenShift deployment, given the platform's licensing model alongside standard infrastructure costs?
+ 5 more Senior questions, with full answers, in the guide.
Scenario (10)
- A Pod fails to start with a 'container has runAsNonRoot and image has non-numeric user' error immediately after deploying to a new OpenShift cluster, though it worked fine before. Walk through your troubleshooting steps.
- An application's Route suddenly stops working, returning a 503 error, even though the underlying Pods appear healthy and running. How do you investigate?
- A BuildConfig that was working fine suddenly starts failing with an image pull error during the build process, and nobody changed the BuildConfig itself. What would you investigate?
- A production application on OpenShift starts experiencing severe performance degradation, and investigation shows the Project's ResourceQuota is nearly exhausted, blocking new Pods from scaling up during a traffic spike. How do you respond immediately, and how do you prevent this going forward?
+ 6 more Scenario questions, with full answers, in the guide.
Get the full DevOps / SRE Interview Guide