>DevOps Interview KB

Kubernetes Interview Questions

128 questions

The most extensive topic on this site: RBAC and security context, storage (PV/PVC/StorageClass), workloads and controllers (Deployments, StatefulSets, DaemonSets, Jobs, CronJobs), autoscaling (HPA/VPA), scheduling and affinity, networking, cluster architecture, CRDs and operators, admission control, and cluster security hardening. Every question is a realistic production scenario — a pod stuck Pending, a webhook silently breaking scheduling, a StatefulSet rollout behaving unexpectedly — not a bare definition.

Kubernetes has built-in admission controllers compiled into the API server, separate from webhook-based ones — what's the actual difference and when does it matter?

IntermediateKubernetes5 min

How would you design and roll out a policy blocking :latest image tags cluster-wide, without breaking every existing deployment on day one?

IntermediateKubernetes7 min

Two mutating webhooks both touch a pod's containers field, and the final result isn't what either webhook intended alone — how do you diagnose and resolve this?

ExpertKubernetes8 min

How do OPA Gatekeeper and Kyverno actually differ as policy engines for Kubernetes admission control, and which would you choose?

IntermediateKubernetesOpaKyverno6 min

A new mutating webhook accidentally intercepted kube-system pod creation and broke core cluster components — how would you design its scoping to prevent this?

AdvancedKubernetes7 min

What's the difference between a validating and a mutating admission webhook, and in what order do they actually run?

IntermediateKubernetes6 min

Every pod creation cluster-wide suddenly starts failing with an admission webhook TLS error — what happened, and how do you recover quickly?

ExpertKubernetes8 min

An admission webhook's failurePolicy is set to Fail — what happens if the webhook itself becomes unavailable, and why might that be the wrong default?

AdvancedKubernetes7 min

A validating webhook is rejecting pod creations that look completely valid — how do you diagnose what it's actually objecting to?

AdvancedKubernetes7 min

kubectl apply --dry-run=server behaves unexpectedly for requests a webhook handles — what does a webhook's sideEffects field have to do with it?

AdvancedKubernetes6 min

For enforcing a new policy, when does it belong in a cluster admission webhook versus a CI-time check before deployment even happens?

IntermediateKubernetes6 min