Kubernetes Interview Questions
30 Kubernetes questions from real DevOps and SRE interviews, sorted by seniority: Pods, Services and networking, probes, Ingress, scheduling, storage, RBAC and Helm.
What is a Kubernetes Pod, and why would you never create one directly?
A Pod is the smallest deployable unit: one or more containers that share a network namespace, so they reach each other on localhost, and can share volumes. They are always scheduled together on one node.
You do not create bare Pods because nothing looks after them. If the node dies, a bare Pod dies with it and nothing brings it back. A controller such as a Deployment holds a desired state and reconciles toward it, so a lost Pod is replaced.
The consequence to state out loud: Pods are disposable. Their name, their IP and their local disk are all temporary, so anything you care about belongs to a controller, a Service or a PersistentVolume rather than to the Pod.