QuestionQ242Verified/Kubernetes FundamentalsCopy linkReport a problemAsk AstroTutorSave questionWhich command retrieves logs for a particular container in a multi-container Pod?Akubectl logs -cBkubectl logs -cCkubectl exec -- tail /var/log/арр.logDkubectl describe pod -cShow AnswerAnswerExplanationkubectl 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 morekubectl logs | KubernetesShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion