Cloud and Container Basics
In Kubernetes, which of the following is the smallest unit that is deployed and managed, grouping one or more containers that share the same IP address and volumes?
- ANode
- BService
- CPod
Show answer and explanation
Answer: C. Pod
A Pod is the smallest unit Kubernetes places and runs. The containers in it share a network namespace, so they can talk to each other over localhost and can use the same volumes. Usually one Pod holds one application container, and helper containers, for example for forwarding logs, are sometimes added to the same Pod. Pods are disposable and get a new IP address when recreated, so they are normally managed indirectly through a Deployment or similar. A node is a machine on which Pods run, and a Service is a stable endpoint for several Pods.
- A. A node is a physical or virtual machine that runs Pods. Many Pods run on one node.
- B. A Service lets clients connect to several Pods selected by labels through a stable name and address.
- C. Correct. The containers in a Pod share the network and volumes.