QuestionQ121Verified/Kubernetes FundamentalsCopy linkReport a problemAsk AstroTutorSave questionWhich kubectl command correctly displays logs in real time?Akubectl logs -p test-container-1Bkubectl logs -c test-container-1Ckubectl logs -l test-container-1Dkubectl logs -f test-container-1Show AnswerAnswerExplanationThe -f (--follow) flag streams a Pod’s logs continuously, similar to tail -f. Therefore, kubectl logs -f test-container-1 displays logs in real time.Learn morekubectl command-line tool referenceShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion