Kubernetes (K8s) Orchestration Master
100+ Kubernetes interview questions covering Pod lifecycle, Deployments, StatefulSets, Services, Ingress, CNI networking, RBAC, and Helm.
Difficulty Filters
Tools & Options
What is Kubernetes?
Kubernetes (K8s) is an open-source container orchestration platform that automates the deployment, scaling, and management of containerized applications.
Why do we need Kubernetes?
As applications grew from single monoliths to microservices, managing thousands of containers manually became impossible. Kubernetes provides a framework to run distributed systems resiliently, handling failovers, scaling, and load balancing automatically.
What are the main components of Kubernetes Architecture?
Kubernetes follows a client-server architecture. It has a control plane (Master Node) consisting of kube-apiserver, etcd, kube-scheduler, and kube-controller-manager. It also has Worker Nodes consisting of kubelet, kube-proxy, and a container runtime.
What is a Pod?
What is a Node in Kubernetes?
What is kubelet?
What is kube-proxy?
What is the role of kube-apiserver?
What is etcd?
What is kube-scheduler?
What is a ReplicaSet?
What is a Deployment in Kubernetes?
What is a Kubernetes Service?
What are the different types of Kubernetes Services?
What are Namespaces?
What is kubectl?
How do you view all pods in the default namespace?
How do you view pods across all namespaces?
What is a Container Runtime?
What is Minikube?
What is a DaemonSet?
What is a StatefulSet?
What are Labels and Selectors?
What is a ConfigMap?
What is a Secret in Kubernetes?
How does a Rolling Update work in deployments?
What is an Ingress in Kubernetes?
What is an Ingress Controller?
Explain Liveness and Readiness Probes.
What is a Job in Kubernetes?
What is a CronJob?
What is Role-Based Access Control (RBAC)?
What is the difference between a Role and a ClusterRole?
What is a Persistent Volume (PV)?
What is a Persistent Volume Claim (PVC)?
What are Storage Classes?
What is Helm in the context of Kubernetes?
Explain Horizontal Pod Autoscaler (HPA).
What is the Cluster Autoscaler?
What is a Headless Service?
What are Taints and Tolerations?
What is Node Affinity?
What is Pod Affinity/Anti-Affinity?
What is an Init Container?
What is a Service Account?
How does resource limits and requests work?
What is a Multi-container Pod?
What is the pause container in a Pod?
How do you rollback a Deployment?
What is Kubeadm?
What is the Control Plane failure impact?
Explain the role of Mutating and Validating Admission Controllers.
How does Kubernetes implement Service Discovery internally?
What are Custom Resource Definitions (CRDs)?
What is the Kubernetes Operator Pattern?
Explain Network Policies.
What is priority and preemption in Kubernetes?
What happens during a graceful pod termination?
What is a PodDisruptionBudget (PDB)?
How do you achieve zero downtime during Node upgrades?
What is the Container Network Interface (CNI)?
What is the Container Storage Interface (CSI)?
What is etcd backup and why is it critical?
Explain how Service Mesh integrates with Kubernetes.
What is a StatefulSet's VolumeClaimTemplate?
What is OOMKilled and why does it happen?
What is a LimitRange?
What is a ResourceQuota?
How does iptables relate to kube-proxy?
What are Ephemeral Containers?
Explain the `ImagePullPolicy`.
What are EndpointSlices?
How does Kubernetes handle certificates?
What is Server-Side Apply?
What is the Downward API?
How do you forcefully delete a Pod that is stuck in Terminating status?
How do you check the resource usage (CPU/Memory) of Pods?
How do you check the logs of a specific container in a multi-container pod?
You deployed an app, but the pods are in 'CrashLoopBackOff'. How do you troubleshoot?
How do you quickly create a pod for testing without writing YAML?
How do you execute a shell inside a running pod?
How do you forward a local port to a port on a pod for debugging?
How do you generate a YAML template for a deployment without actually creating it?
How do you scale a deployment imperatively to 5 replicas?
Your pod is 'Pending'. What is the most likely cause?
How do you update the image of a deployment imperatively?
How do you watch resources in real-time?
How do you extract a secret's base64 decoded value?
How do you drain a node for maintenance?
How do you mark a node as schedulable again?
How do you temporarily pause a deployment's rollout?
How do you query the CPU and memory requests of all pods on a specific node?
How do you copy a file from your local machine to a pod?
A deployment fails to rollout and gets stuck. How do you check the rollout status?
How do you apply a directory containing multiple YAML files?
How do you find which pod is using the most memory?
How do you modify an existing resource interactively in your editor?
You lost access to your cluster. Where can you find your Kubeconfig file?
How to see the history of a deployment's revisions?
How do you list all pods that have a specific label, e.g., 'app=nginx'?
Technical Interview Mastery Blueprint
Proven methodologies and frameworks to succeed in technical and architecture rounds.
1. The Engineering STAR Technique
When responding to architectural or situational questions, structure your answer using Situation, Technical Constraint, Action, and Measurable Result. Rather than jumping straight to syntax, articulate the business problem, why certain patterns (e.g. caching, queuing, immutability) were selected over alternatives, and what latency or throughput improvements were achieved.
2. Defending Architectural Trade-Offs
Senior interviewers evaluate how you weigh trade-offs. Always explain why you chose an approach: e.g., memory overhead vs CPU cycle speed, consistency vs availability (CAP theorem), or normalized schemas vs denormalized fast reads. Stating the drawbacks of your own proposal demonstrates maturity and production experience.
3. Clean Code & Edge-Case Proactivity
In live-coding rounds, communicate your thinking aloud before typing. State edge cases explicitly: null or undefined inputs, extreme boundary values, concurrency races, and network timeouts. Writing modular, well-named functions with deterministic unit tests separates junior candidates from staff-level engineers.
4. Antipatterns to Avoid
Avoid reciting memorized definitions without practical context. Never dismiss non-functional requirements such as security (CSRF, injection, token rotation), observability (logging, metrics), and accessibility (ARIA, semantic standards). Always ask clarifying scope questions before writing complex implementations.
Explore Related Tools
Hand-picked utilities and calculators related to this tool.
