QuestionQ121

VerifiedKubernetes Fundamentals

Which kubectl command correctly displays logs in real time?

Explanation

The -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 more

Community Discussion

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