Viewing Logs

Difficulty: Beginner

Question

How do you see the logs of a Pod, including streaming?

Answer

Use `kubectl logs <pod-name>` or `kubectl logs -f <pod-name>` for a continuous stream.

Concepts covered

Logs, Debugging