Kubernetes and Cloud Native Associate (KCNA) — Question 50
Which statement about the Kubernetes network model is correct?
Answer options
- A. Pods can only communicate with Pods exposed via a Service.
- B. Pods can communicate with all Pods without NAT.
- C. The Pod IP is only visible inside a Pod.
- D. The Service IP is used for the communication between Services.
Correct answer: B
Explanation
The correct answer is B because, in Kubernetes, Pods can communicate with each other directly using their IP addresses without the need for Network Address Translation (NAT). Option A is incorrect since Pods can communicate with each other regardless of Service exposure. Option C is false as Pod IPs can be accessed by other Pods in the same network. Option D is misleading because Service IPs are primarily for accessing Services, not for communication between them.