QuestionQ242

VerifiedKubernetes Fundamentals

Which command retrieves logs for a particular container in a multi-container Pod?

Explanation

kubectl logs prints a container’s logs, and the -c (--container) flag specifies which container to target when a Pod has multiple containers. The command syntax is kubectl logs POD -c CONTAINER.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!