Kubernetes and Cloud Native Associate (KCNA)Kubernetes FundamentalsEasy
A developer is creating a YAML manifest for a Pod that needs to run a simple web server. Which core Kubernetes object is the smallest deployable unit that can contain this container?
- AService
- BNode
- CDeployment
- DPod
Show answer & explanationAnswer & explanation
Correct answer: D. Pod
A Pod is the smallest deployable unit in Kubernetes, directly encapsulating one or more containers, storage resources, a unique network IP, and options that govern how the containers should run.
Why the other options are wrong
- A. A Service defines a logical set of Pods and a policy by which to access them, rather than containing containers directly.
- B. A Node is a physical or virtual machine that hosts Pods, but is not a deployable unit in itself.
- C. A Deployment manages a set of Pods, but is not the smallest deployable unit itself.
Kubernetes Pod
The smallest, most basic deployable unit in Kubernetes, representing a single instance of a running process in a cluster.
- Encapsulates one or more containers.
- Shares network and storage resources.
- Is the atomic unit of scheduling in Kubernetes.
Memory trick: Pods are like peas in a pod, holding containers together.