A civic permitting Pod runs containers named app and sidecar. A developer runs kubectl logs permitting-7f and sees an error asking which container. What should they do next?
Select an answer to reveal the explanation.
Short Explanation
Multi-container Pods are like a duplex with two mailboxes—you have to say which one you want. kubectl logs needs -c when more than one container is in the Pod. Point it at app or sidecar and the stream shows up.
Full Explanation
When a Pod has multiple containers, kubectl logs <pod> requires an explicit container name via -c (or --container). Kubernetes will not guess which container’s stdout to follow. Choosing -c app or -c sidecar targets that container’s log stream without changing the Pod’s architecture. Describe, port-forward, or collapsing to one container are unrelated to selecting a log source.