OpenShift Engineer Interview Questions (2027)

55 OpenShift engineer interview questions with answers: S2I builds, ImageStreams, Routes, Deployments, Tekton pipelines, Argo CD GitOps and SCCs.

Sep 12, 2025 - 17:51
Nov 11, 2026 - 14:11
 0  123
OpenShift Engineer Interview Questions (2027)

OpenShift engineer interviews focus on how applications get built, deployed and exposed on Red Hat OpenShift: Source-to-Image builds, BuildConfigs and ImageStreams, Routes, Deployments, OpenShift Pipelines (Tekton), OpenShift GitOps (Argo CD), and running images under the default restricted-v2 security context constraint. This page has 55 questions with answers.

This guide is for engineers who build and ship workloads on OpenShift: DevOps engineers, platform engineers and developers with deployment duties. It does not repeat cluster installation, upgrades or etcd care. For those, read our OpenShift administration interview questions. The broad question bank lives in 120+ OpenShift interview questions and answers.

Key takeaways

  • Expect questions on the full path from Git to a running Route: oc new-app, S2I or Docker builds, the internal registry, ImageStreams, Deployments and Routes.
  • DeploymentConfig has been deprecated since OpenShift 4.14. New work should use Kubernetes Deployments, and interviewers like candidates who know why.
  • The default restricted-v2 SCC runs containers with an arbitrary UID. Images that assume root break, and you should know how to fix the image instead of loosening security.
  • CI/CD questions centre on OpenShift Pipelines (based on Tekton) and OpenShift GitOps (based on Argo CD).
  • Route termination types (edge, passthrough, re-encrypt) come up in almost every interview.
  • Scenario answers should follow the same order: symptom, the oc command that confirms the cause, fix, prevention.

How this guide fits with our other OpenShift pages

PageFocusRead it if
This pageBuild, deploy, expose and automate applicationsYou ship workloads on OpenShift
Administration questionsInstall, upgrade, nodes, operators, etcdYou run the cluster itself
Advanced questionsDeep internals for experienced engineersYou have several years on OpenShift
Scenario-based questionsTroubleshooting storiesYou want long scenario practice

Freshers: OpenShift engineering basics (questions 1 to 18)

1. What is Red Hat OpenShift?

OpenShift is Red Hat's Kubernetes platform. It adds a web console, integrated builds, an internal image registry, Routes, operators for platform services, and stricter default security on top of Kubernetes. OpenShift Container Platform runs on RHEL CoreOS nodes and can be self-managed or consumed as a managed service.

2. How is an OpenShift project different from a Kubernetes namespace?

A project is a namespace with extra annotations and access rules. You create one with oc new-project, and OpenShift sets up default service accounts and role bindings. Regular users usually create projects, while cluster admins create raw namespaces.

3. What does oc new-app do?

It creates the objects needed to run an application from a Git repository, an image or a template. From source it typically creates a BuildConfig, an ImageStream, a Deployment and a Service. You then expose the Service with a Route.

oc new-app https://github.com/sclorg/nodejs-ex.git --name=myapp
oc logs -f bc/myapp
oc expose service/myapp
oc get route myapp

4. What is Source-to-Image (S2I)?

S2I builds a runnable image by injecting application source into a builder image that knows how to compile and run that language. The builder's assemble script builds the code and its run script starts it. Developers get an image without writing a Dockerfile.

5. What is a BuildConfig?

A BuildConfig describes how to build an image: the source (Git, binary, inline Dockerfile), the strategy (Source, Docker or Custom), the output image, and triggers such as a Git webhook or a change to the builder image. Each run of it creates a Build object.

6. Which build strategies does OpenShift support?

The common strategies are Source (S2I), Docker (build from a Dockerfile) and Custom (your own builder image). There is also the separate Builds for Red Hat OpenShift operator, which is based on the Shipwright project and supports strategies such as Buildah and S2I.

7. What is an ImageStream?

An ImageStream is a named pointer to related images, with tags such as myapp:latest that resolve to an image digest. Workloads can reference the stream instead of a registry URL, and OpenShift can trigger a rollout when a tag starts pointing to a new digest.

8. Where are built images stored?

By default, in the integrated image registry inside the cluster, reachable in-cluster at image-registry.openshift-image-registry.svc:5000. You can also push builds to an external registry such as Quay by setting the BuildConfig output to a DockerImage reference with a push secret.

9. What is a Route?

A Route exposes a Service on a hostname through the OpenShift ingress router (HAProxy-based by default). It can terminate TLS, set timeouts through annotations and split traffic between Services. Kubernetes Ingress objects also work and are converted into Routes.

10. What are the Route TLS termination types?

Edge terminates TLS at the router and sends plain HTTP to the pod. Passthrough sends encrypted traffic straight to the pod, which holds the certificate. Re-encrypt terminates at the router and opens a new TLS connection to the pod.

oc create route edge myapp-secure --service=myapp --hostname=myapp.apps.example.com

11. Deployment or DeploymentConfig: which should you use?

Use a Kubernetes Deployment. Red Hat deprecated the DeploymentConfig API in OpenShift 4.14; it still works but gets only security and critical fixes. Deployments support the same rolling updates, and ImageStream triggers can be added through an annotation.

12. What is a security context constraint (SCC)?

An SCC controls what a pod may do: run as root, use host paths, add Linux capabilities, choose a UID and so on. Most pods are admitted under restricted-v2, which drops capabilities, blocks privilege escalation and assigns a UID from the project's range.

13. Why does a container that runs fine with Docker fail on OpenShift?

Usually because it expects to run as root or to write to directories owned by root. Under restricted-v2 the container runs with an arbitrary UID that belongs to group 0. Fix the image: make writable paths group-owned by 0 with group write permission, and listen on a port above 1024.

RUN chgrp -R 0 /app && chmod -R g=u /app
USER 1001
EXPOSE 8080

14. How do you pass configuration to an application?

Use ConfigMaps for non-sensitive settings and Secrets for credentials, then mount them as files or inject them as environment variables. oc set env deployment/myapp --from=configmap/myapp-config is a quick way to load a ConfigMap into the environment.

15. How do you see why a build failed?

Read the build log with oc logs -f bc/myapp or oc logs build/myapp-3, and check events with oc describe build myapp-3. Common causes are a wrong Git URL, a missing source secret, a failed dependency download or a test failure in the assemble step.

16. What is the difference between the web console views for developers and administrators?

The console has screens for building and viewing application topology, and screens for cluster settings, operators and nodes. What you see depends on your role. Engineers often use the topology view to see Deployments, builds and Routes for a project together.

17. What is OpenShift Local?

OpenShift Local (formerly CodeReady Containers) runs a minimal single-node OpenShift cluster on a laptop for development and testing. It is not meant for production. The Developer Sandbox is a hosted alternative for practice.

18. What are Templates, and are they still used?

Templates are OpenShift objects that bundle parameterized resources, processed with oc process. They still work, but many teams now package applications as Helm charts, which the OpenShift console supports, or manage manifests with Kustomize through GitOps.

2 to 5 years: pipelines, GitOps and day-to-day operations (questions 19 to 38)

19. What is OpenShift Pipelines?

OpenShift Pipelines is Red Hat's CI/CD operator based on Tekton. Pipelines are Kubernetes resources: Tasks contain Steps that run in containers, a Pipeline orders Tasks, and a PipelineRun executes it. Each run uses pods, so there is no always-on CI server to maintain.

20. How does a Tekton pipeline get triggered from Git?

Tekton Triggers provides an EventListener that receives webhooks, a TriggerBinding that extracts fields such as the commit SHA, and a TriggerTemplate that creates the PipelineRun. OpenShift Pipelines also supports Pipelines as Code, where the pipeline definition lives in a .tekton directory in the repository.

21. How do Tasks share files in a Tekton pipeline?

Through workspaces, usually backed by a PersistentVolumeClaim or a volumeClaimTemplate. One Task clones the repo into the workspace and later Tasks build and test from it. Results pass small values such as an image digest between Tasks.

22. What is OpenShift GitOps?

OpenShift GitOps is Red Hat's operator for Argo CD. Argo CD watches Git repositories and keeps cluster resources in sync with them, reporting drift and optionally fixing it automatically. Pipelines build and push images, and GitOps deploys them by updating manifests in Git.

23. How would you split CI and CD on OpenShift?

Let Tekton handle CI: clone, test, build, scan and push an image, then update the image tag in a config repository. Let Argo CD handle CD: sync that config repository into each environment. This keeps cluster write access out of the CI system and gives an audit trail in Git.

24. How do ImageStream triggers work with a Deployment?

Add the image.openshift.io/triggers annotation to the Deployment, naming the ImageStreamTag and container. When the tag moves to a new digest, OpenShift updates the container image and the Deployment rolls out. oc set triggers deployment/myapp --from-image=myapp:latest -c myapp sets this for you.

25. How do you promote an image from dev to prod?

Tag the tested digest into the next environment, for example oc tag dev/myapp@sha256:... prod/myapp:release, or update the image digest in the prod overlay in Git for GitOps. Promote digests, not mutable tags, so prod runs exactly what was tested.

26. How do you let one project pull images from another?

Grant the pulling project's service account the system:image-puller role in the source project.

oc policy add-role-to-user system:image-puller \
  system:serviceaccount:prod:default -n dev

27. What health checks should every Deployment have?

A readiness probe, so traffic only reaches pods that can serve, and a liveness probe, so stuck pods restart. Add a startup probe for slow-starting apps so liveness does not kill them during boot.

oc set probe deployment/myapp --readiness --get-url=http://:8080/healthz --initial-delay-seconds=5
oc set probe deployment/myapp --liveness --get-url=http://:8080/healthz --period-seconds=10

28. How do resource requests, limits, quotas and LimitRanges relate?

Requests reserve CPU and memory for scheduling, and limits cap usage. A ResourceQuota caps the total a project may use, and a LimitRange sets default and maximum values per container. If a quota exists for CPU or memory, pods without requests are rejected, which is a frequent deployment error.

29. How do you roll back a bad Deployment?

Run oc rollout undo deployment/myapp, or --to-revision=N for a specific revision. With GitOps, revert the commit in Git instead so Argo CD does not re-apply the bad version.

30. How do you do a blue-green or canary release with Routes?

Run two Deployments with two Services and point one Route at both with weights. Shift the weights gradually for a canary, or move all traffic at once for blue-green.

oc set route-backends myapp myapp-blue=90 myapp-green=10

31. How do you set a longer timeout for a slow endpoint?

Annotate the Route: oc annotate route myapp haproxy.router.openshift.io/timeout=120s. Fix the slow endpoint too, because long timeouts hold router connections open.

32. How do you handle secrets in a GitOps workflow?

Do not commit plain Secrets. Common options are the External Secrets Operator pulling from a vault, Sealed Secrets that only the cluster can decrypt, or the HashiCorp Vault agent injector. The choice depends on where your organization already stores secrets.

33. What is OpenShift Serverless?

OpenShift Serverless is based on Knative. Knative Serving runs request-driven workloads that scale to zero and back, with revisions and traffic splitting. Knative Eventing connects event sources to services.

34. How do you debug a pod that crashes on start?

Check oc get pods, oc describe pod and oc logs --previous. Then run oc debug deployment/myapp, which starts a copy of the pod with a shell instead of the normal command, so you can inspect files, permissions and environment variables.

35. How do you monitor your own application metrics?

Enable monitoring for user-defined projects in the cluster monitoring configuration, then create a ServiceMonitor or PodMonitor that points at your /metrics endpoint. Metrics appear in the console's observe screens, and you can add PrometheusRule alerts.

36. What is an operator, from an application engineer's view?

An operator is a controller that manages an application through custom resources. You request a database or Kafka cluster with a YAML object, and the operator creates and maintains it. OperatorHub in the console lists the operators an admin has made available.

37. How do service accounts and RBAC apply to pipelines?

Pipelines run under a service account. Give it only what it needs, for example edit in the target project or just push access to the registry. Avoid giving CI service accounts cluster-admin.

38. How do you build from a local directory without Git?

Use a binary build: create a BuildConfig with binary source, then upload the directory.

oc new-build --name=myapp --binary --strategy=docker
oc start-build myapp --from-dir=. --follow

Senior: design and governance (questions 39 to 47)

39. How would you design a multi-environment delivery model on OpenShift?

Use separate projects or clusters for dev, test and prod, one config repository with Kustomize overlays or Helm values per environment, Argo CD applications per environment, and image promotion by digest. Gate prod with pull request approval in Git rather than manual cluster changes.

40. How do you keep images secure across the pipeline?

Use trusted base images such as Red Hat UBI, scan images in the pipeline, sign them (for example with Sigstore cosign through Tekton Chains), and enforce signature or registry policies at admission. Rebuild regularly so base image fixes reach running workloads.

41. When would you grant a custom SCC?

Only when a workload truly needs a capability, such as a network tool needing NET_ADMIN. Create a narrow custom SCC, bind it to a dedicated service account through RBAC, document the reason, and never give privileged or anyuid to the default service account.

42. How do you migrate DeploymentConfigs to Deployments?

Map the fields: strategy, triggers (move ImageStream triggers to the annotation), lifecycle hooks (replace with init containers or Jobs) and custom parameters. Deploy the new Deployment beside the old one, switch the Service selector or Route, verify, then delete the DeploymentConfig.

43. How would you give many teams self-service without losing control?

Offer project templates with default quotas, LimitRanges, network policies and role bindings; a catalog of approved Helm charts or operators; and GitOps for changes. Many teams add an internal developer portal such as Red Hat Developer Hub, which is based on Backstage.

44. How do you isolate project traffic?

Apply NetworkPolicies that deny all ingress by default and allow only needed sources, such as the ingress router namespace and specific app labels. Egress controls can limit which external hosts pods may reach.

45. How do you plan capacity for application teams?

Base quotas on real requests and usage from monitoring, use the Horizontal Pod Autoscaler on CPU, memory or custom metrics, and review overcommit and node headroom with the admins. Unrealistic requests waste capacity; missing requests cause noisy neighbours.

46. How do you make pipelines reproducible?

Pin Task and image versions by digest, keep pipeline definitions in Git, use Tekton bundles or the Tekton Hub catalog with fixed versions, and record provenance. Tekton Chains can produce signed provenance for each build.

47. What would you check before moving an app from plain Kubernetes to OpenShift?

Root or fixed-UID assumptions, privileged ports, host paths, Ingress versus Route needs, storage classes, image registry access, and any cluster-scoped permissions the Helm chart asks for. Run it in a test project under restricted-v2 first.

Scenario questions (questions 48 to 55)

48. A pod fails with "permission denied" writing to /var/cache/app. What do you do?

The arbitrary UID cannot write to a root-owned directory. Confirm with oc debug and ls -ln. Fix the image with chgrp -R 0 and chmod -R g=u on that path, or mount an emptyDir there. Do not grant anyuid to work around it.

49. A Route returns "Application is not available". How do you troubleshoot?

The router has no healthy endpoint. Check oc get endpoints myapp: if empty, the Service selector does not match pod labels or pods are not ready. Check readiness probe failures in oc describe pod and confirm the Route targets the right Service port.

50. An S2I build succeeds but the app crashes immediately. What do you check?

Read oc logs --previous. Common causes are a wrong start command (for Node.js, the start script in package.json), the app listening on localhost instead of 0.0.0.0, the wrong port, or a missing environment variable.

51. A new image was pushed but the Deployment did not update. Why?

Check whether an ImageStream trigger is configured (oc set triggers deployment/myapp), whether the push went to the tag the trigger watches, and whether the Deployment references a fixed digest. With GitOps, the manifest in Git must change before Argo CD rolls out.

52. A PipelineRun is stuck in Pending. What do you look at?

Look at the TaskRun pods: oc get pods and oc describe pod. Typical causes are an unbound workspace PVC, a ResourceQuota blocking new pods, or missing image pull credentials for a step image.

53. Argo CD shows an application as OutOfSync right after every sync. What is happening?

Something else changes the same fields: an operator, an autoscaler changing replicas, or defaults added by the API server. Find the diff in Argo CD, then remove the field from Git or add an ignoreDifferences rule for it.

54. Builds fail with "quota exceeded" in a busy project. What do you do?

Check oc describe quota. Builds need CPU and memory too. Clean up old builds with a BuildConfig history limit, set requests on builds, or run builds in a separate project with its own quota.

55. Users report intermittent 504 errors on long uploads. How do you fix it?

Router timeouts are cutting the connection. Confirm in router logs or by timing a request, then raise the Route timeout annotation for that Route only. Consider moving large uploads to direct object storage uploads so the app does not hold long connections.

How to prepare for an OpenShift engineer interview

  1. Install OpenShift Local or use the Developer Sandbox and deploy one app with S2I and one with a Dockerfile.
  2. Expose both with edge Routes, add probes, set requests and limits, and break each one on purpose.
  3. Write a Tekton pipeline that clones, tests, builds and pushes, then let Argo CD deploy from a config repository.
  4. Practise explaining one incident you fixed in the symptom, cause, fix and prevention order.

For wider preparation, see our 200 DevOps interview questions guide and the Kubernetes architecture components explainer. Our OpenShift training covers these topics hands-on in a classroom in Kharadi, Pune and live online.

Frequently asked questions

What does an OpenShift engineer do?

An OpenShift engineer builds and runs the path from source code to running applications on OpenShift: builds, image management, Deployments, Routes, pipelines and GitOps, plus security settings and troubleshooting for application teams.

Is DeploymentConfig still supported in OpenShift?

It still works, but Red Hat deprecated it in OpenShift 4.14 and limits changes to security and critical fixes. Use Kubernetes Deployments for new applications.

What is the difference between a Route and an Ingress?

A Route is OpenShift's own object for exposing a Service through the router, with features like weighted backends and per-Route annotations. Kubernetes Ingress objects also work on OpenShift and are converted to Routes.

Why do containers run as random UIDs on OpenShift?

The default restricted-v2 SCC assigns each container a UID from its project's range so that a container compromise does not run as root. Images must be built to work with any UID in group 0.

Is OpenShift Pipelines the same as Tekton?

OpenShift Pipelines is Red Hat's supported distribution of Tekton, delivered as an operator with console integration and extras such as Pipelines as Code.

Do I need Kubernetes knowledge for an OpenShift interview?

Yes. Pods, Deployments, Services, ConfigMaps, Secrets, probes and RBAC are the base of most OpenShift questions. OpenShift-specific topics come on top.

Which Red Hat certification fits an OpenShift engineer?

Red Hat offers OpenShift exams for developers and administrators. Check the current exam names and objectives on Red Hat's training and certification site, because they are updated with new OpenShift releases.

References

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0
Mridul I am a passionate technology enthusiast with a strong focus on DevOps, Cloud Computing, and Cybersecurity. Through my blogs at DevOps Training Institute, I aim to simplify complex concepts and share practical insights for learners and professionals. My goal is to empower readers with knowledge, hands-on tips, and industry best practices to stay ahead in the ever-evolving world of DevOps.