A Pod runs containers named api, shipper, and warmer. Which action correctly targets only the shipper log stream?
Select an answer to reveal the explanation.
Short Explanation
Multi-container Pods are a group chat with three threads—you have to name which thread you want. That’s the -c container flag for kubectl logs.
Full Explanation
When a Pod has multiple containers, kubectl logs requires selecting a container name (for example -c) unless there is only one container. Logs are not stored in Endpoints, and deleting sibling containers is not how you choose a log stream. Explicit container selection is required for logs and similarly for exec.