KCNA · Question #149
Which two elements are shared between containers in the same pod?
The correct answer is C. Storage and network resources. Containers within the same Kubernetes Pod share two key resources: network namespace (same IP address and port space, communicating via localhost) and storage volumes (Volumes defined at the Pod level are mounted into each container that requests them). Liveness probes (A) are…
Question
Which two elements are shared between containers in the same pod?
Options
- ANetwork resources and liveness probes.
- BStorage and container image registry.
- CStorage and network resources.
- DNetwork resources and Dockerfiles.
How the community answered
(54 responses)- A2% (1)
- B7% (4)
- C89% (48)
- D2% (1)
Explanation
Containers within the same Kubernetes Pod share two key resources: network namespace (same IP address and port space, communicating via localhost) and storage volumes (Volumes defined at the Pod level are mounted into each container that requests them). Liveness probes (A) are defined per container, not shared. Container image registries (B) are external infrastructure, not a pod-level shared resource. Dockerfiles (D) are build-time artifacts and have no runtime relevance inside a pod.
Topics
Community Discussion
No community discussion yet for this question.