OpenShift interview questions and answers for platform engineers and admins
OpenShift interview questions assume you know Kubernetes and then test what Red Hat's platform adds: projects, routes and the HAProxy router, security context constraints and the random user ID that breaks root-only images, builds with Source-to-Image and image streams, and operators that manage the cluster itself. Admin roles add machine config, upgrades and etcd backups. The strongest candidates explain why a pod fails on OpenShift but runs fine on a laptop.
By Evin JohnPublished 7 min read
How OpenShift is tested
Employers that run OpenShift, often banks, telecoms, insurers and public sector teams with Red Hat support contracts, hire for two profiles. Application platform engineers deploy and debug workloads, write pipelines and help developers onboard. Cluster administrators install, upgrade and secure the clusters, sometimes on bare metal or in disconnected networks. Both get a Kubernetes baseline first, then OpenShift-specific questions, and often a live terminal session or a scenario where a deployment will not start. Some job posts mention Red Hat certifications such as the OpenShift administrator exam; treat them as useful signals, not a requirement unless the post says so.
- Kubernetes baselinePods, Deployments, Services, probes, requests and limits, RBAC. Expect it even in an OpenShift-only loop.
- OpenShift layerProjects, routes, SCCs, builds, image streams, templates, operators and the oc CLI.
- Scenario or hands-onFix a failing deployment, expose an app with TLS, plan an upgrade or recover from a bad MachineConfig.
Fundamentals: what OpenShift adds to Kubernetes
| Question | What it tests | What a strong answer shows |
|---|---|---|
| How is OpenShift different from upstream Kubernetes? | Positioning | It is a Kubernetes distribution with integrated pieces: a hardened default security model, routes and a router, builds and an internal registry, a web console, OAuth with identity providers, monitoring, and operators that install and upgrade the platform. OKD is the community distribution. |
| What is a project? | Tenancy | A namespace with extra metadata (display name, description) created through a project request, so admins can control who may self-provision and apply default quotas and network policies through a template. |
| Route versus Ingress? | Exposure | A Route is OpenShift's object for exposing a Service through the router, with TLS termination modes, weighted backends and sharding. Ingress objects still work; OpenShift creates matching routes from them. |
| What are the three TLS termination types on a route? | TLS | Edge ends TLS at the router and sends plain HTTP to the pod. Passthrough sends encrypted traffic straight to the pod, so the router cannot read headers. Re-encrypt ends TLS at the router and opens a new TLS connection to the pod. |
| What does oc do that kubectl does not? | Tooling | oc includes kubectl's commands plus OpenShift ones: login against the OAuth server, new-project, new-app, start-build, expose, rsh, debug and the admin set under oc adm. |
| What is Source-to-Image? | Builds | A build strategy that takes source code and a builder image (for Node.js, Java, Python and others), runs the builder's assemble script and produces a runnable image without a Dockerfile. |
| What is an image stream? | Images | A named pointer to one or more image tags, in the internal registry or outside it. Builds and deployments can trigger when a tag in the stream changes, and you can promote by retagging. |
| BuildConfig strategies? | Builds | Source (S2I), Docker (a Dockerfile in the repo), and custom. Pipeline-style builds have moved to OpenShift Pipelines, which is based on Tekton. |
| DeploymentConfig or Deployment? | Currency | Use Deployment. DeploymentConfig was OpenShift's older object with image-stream triggers and lifecycle hooks; it is deprecated in recent 4.x releases, so new work should use standard Deployments. |
| What is a template? | Packaging | A parameterized list of objects. oc process fills the parameters and the output is applied, a pre-Helm way to stamp out apps that many older clusters still use. |
oc login https://api.cluster.example.com:6443
oc new-project shop --display-name="Shop"
# Build from source with the Node.js builder image, then expose it
oc new-app nodejs~https://github.com/example/shop-api.git --name=shop-api
oc logs -f buildconfig/shop-api
oc expose service/shop-api # plain HTTP route
oc create route edge shop-api-tls --service=shop-api
oc get pods,svc,routes
oc rsh deployment/shop-api # shell inside a running pod
oc get events --sort-by=.lastTimestampIntermediate: security, networking and operators
- What is a Security Context Constraint? An OpenShift admission object that decides what a pod may request: user and group IDs, privileged mode, host paths and ports, capabilities, volume types and SELinux context. Pods are validated against the SCCs their service account can use.
- Why does an image that works in Docker fail on OpenShift? The restricted SCCs assign a random UID from the project's range. Images that need root, bind to ports below 1024 or write to directories owned by a specific user fail with permission errors.
- How do you fix that without anyuid? Make writable paths group-owned by root group 0 and group-writable, listen on a high port such as 8080, and do not depend on a specific UID. Granting anyuid or privileged to a service account should be a reviewed exception.
- Which SCC is the default for new pods? Recent 4.x releases use restricted-v2, which also requires dropping all capabilities and disallows privilege escalation. Check what your version uses with oc get scc and the pod's openshift.io/scc annotation.
- How does the router work? The default ingress controller runs HAProxy pods that watch routes and reload configuration. Additional ingress controllers can serve route shards selected by labels on routes or namespaces.
- How do you do a canary or A/B release with routes? Add alternateBackends with weights, for example 90 and 10, then shift the weights. Sticky sessions use a cookie set by the router.
- Which network plugin does OpenShift use? Newer releases use OVN-Kubernetes. The older OpenShift SDN was deprecated and removed in later 4.x versions, so an upgrade from an old cluster may include a network migration.
- How do you restrict traffic between projects? NetworkPolicy objects, often added to every new project through the project template. Egress firewall rules and egress IPs control traffic leaving the cluster.
- What is the difference between the Cluster Version Operator and OLM? The CVO manages the platform's own cluster operators and upgrades. The Operator Lifecycle Manager installs and updates add-on operators from OperatorHub through subscriptions and channels.
- How do quotas differ from upstream? ResourceQuota and LimitRange work as in Kubernetes. ClusterResourceQuota adds a quota across many projects selected by label or annotation, useful for one team that owns several projects.
- How do users log in? The built-in OAuth server delegates to identity providers such as LDAP, OIDC or HTPasswd. The temporary kubeadmin user should be removed once a real provider and cluster-admin users exist.
FROM registry.access.redhat.com/ubi9/nodejs-20
WORKDIR /opt/app-root/src
COPY --chown=1001:0 . .
RUN npm ci --omit=dev && \
chgrp -R 0 /opt/app-root/src && \
chmod -R g=u /opt/app-root/src
USER 1001
EXPOSE 8080
CMD ["node", "server.js"]apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: shop
namespace: shop
spec:
host: shop.apps.example.com
to:
kind: Service
name: shop-v1
weight: 90
alternateBackends:
- kind: Service
name: shop-v2
weight: 10
port:
targetPort: 8080
tls:
termination: edge
insecureEdgeTerminationPolicy: RedirectSenior and administrator scenarios
| Question | What it tests | What a strong answer shows |
|---|---|---|
| A pod is in CrashLoopBackOff with "permission denied" on /var/cache/nginx. Walk me through it. | Root-cause debugging | Check oc logs and the pod's SCC annotation, confirm it runs as a random UID, then fix the image (unprivileged nginx variant, group 0 permissions, port 8080) rather than granting anyuid to make the error go away. |
| How does a cluster upgrade work, and how do you plan one? | Lifecycle | Pick a channel and target version from the supported upgrade graph, check cluster operators are healthy and no MachineConfigPool is degraded, review deprecated APIs, back up etcd, then let the CVO roll operators and nodes. Pause worker pools if you need a controlled window. |
| What happens when you apply a MachineConfig? | Node management | The Machine Config Operator renders a new config for the pool, then cordons, drains, updates and reboots nodes one at a time (or as maxUnavailable allows). A bad config can leave the pool degraded, so test on a small custom pool first. |
| How do you get into a node when SSH is off? | Debug access | oc debug node/<name> starts a privileged pod on that node; chroot /host gives you the host's tools. It is the supported path on RHCOS nodes. |
| How do you back up etcd? | Disaster recovery | Run the cluster backup script on a control plane node through oc debug, which saves an etcd snapshot and the static pod resources. Store it off the cluster and rehearse the restore procedure. |
| What do you send Red Hat support? | Supportability | oc adm must-gather collects cluster operator state, logs and resources into an archive; targeted images exist for specific operators. Also the cluster ID and the exact version. |
| IPI versus UPI installs? | Installation | Installer-provisioned infrastructure lets the installer create machines, load balancers and DNS on supported platforms. User-provisioned means you build those yourself, common in restricted data centers and disconnected setups with a mirrored registry. |
| How would you run CI/CD on OpenShift? | Delivery | OpenShift Pipelines (Tekton) for build and test tasks inside the cluster, OpenShift GitOps (Argo CD) to sync manifests from Git, image promotion by tag, and approvals before production. |
| Self-managed or a managed offering? | Judgment | Managed services such as ROSA on AWS or Azure Red Hat OpenShift shift control plane operations to the provider; self-managed gives full control and fits on-premises or disconnected needs. Weigh team size, compliance and existing contracts. |
| A developer asks for cluster-admin to install a CRD. What do you say? | Governance | Offer an operator or a reviewed install by the platform team, grant the narrowest role that works, and document the exception if it is truly needed. |
Fictional example
- Interviewer
- A team's vendor image fails on OpenShift because it expects to run as root. They want you to grant anyuid to their service account today. What do you do?
- Candidate
- First I would confirm the actual failure. If it is writing to a directory owned by root or binding to port 80, those are usually fixable without root: mount an emptyDir at the path it writes to, or set the listen port through an environment variable and point the Service at 8080. I would also check whether the vendor publishes an OpenShift-certified or non-root variant. If none of that works and the deadline is real, I would grant anyuid to a dedicated service account used only by that deployment, not the project's default account, and record it as an exception with an owner and a review date. anyuid still keeps other restrictions in place, which is why I would avoid privileged. Then I would follow up with the vendor so the exception can be removed.
An OpenShift practice plan
- Day 1: run OpenShift Local or a trial cluster if you can, or read the oc reference, and practice new-project, new-app, expose and rsh until you can type them without notes.
- Day 2: deploy a root-only image, watch it fail, read the SCC annotation and fix the image with group 0 permissions.
- Day 3: create edge, passthrough and re-encrypt routes, then a weighted canary, and explain when each fits.
- Day 4: read the docs on the CVO, MachineConfigPools and upgrade channels, and write out an upgrade checklist for a production cluster.
- Day 5: rehearse two stories aloud: a platform incident you resolved and a time you said no to a risky permission request.
For the upstream concepts every OpenShift interview also checks, see Kubernetes interview questions and Docker interview questions. OpenShift's service mesh offering is built on Istio, covered in Istio interview questions.
Scenario rounds reward a calm, ordered explanation more than speed, and that takes rehearsal. Natively, an AI interview assistant for Mac and Windows, transcribes your mock platform interviews on your computer so you can see whether you named the SCC before reaching for anyuid. In practice it can read a screenshot of an error, an oc output or a YAML file and suggest what to check next, and with Pro or the free trial it can draw on your résumé and the job description you add. Notes from each session stay for review.
Questions people ask
What OpenShift questions are asked in interviews?
Expect how OpenShift differs from Kubernetes, projects, routes and TLS termination, security context constraints, S2I builds and image streams, operators, the oc CLI, and for admin roles upgrades, MachineConfigs and etcd backup.
Why does my container fail on OpenShift but work in Docker?
OpenShift's restricted security context constraints run containers as a random non-root user. Images that need root, fixed file ownership or a port below 1024 fail until the image is made group 0 writable and listens on a high port.
What is the difference between a Route and an Ingress in OpenShift?
A Route is OpenShift's own object for exposing a service through the router, with edge, passthrough and re-encrypt TLS and weighted backends. Ingress objects are supported and converted into routes.
Do I need to know Kubernetes for an OpenShift interview?
Yes. Most OpenShift interviews start with Kubernetes basics such as pods, Deployments, Services, probes and RBAC, then move to what OpenShift adds.
Where to go next
Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.
Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.
