You have a multi-container pod with two containers: container-A and container-B. container-B needs to access the network of container-A. Which configuration is required?
Containers in a pod share the same network namespace, so they can communicate via localhost.
Why this answer
Option C is correct. By default, containers in the same pod share the same network namespace, so container-B can access container-A via localhost. Option A (hostNetwork) uses the host's network, not needed.
Option B (ports) exposes ports but doesn't affect network namespace sharing. Option D (service account) is for authentication, not networking.