k8wiz
Kubernetes
Easy
Commands

Which kubectl command is used to view the logs of a pod?

Select your answer:

Show answer and explanation

Answer: kubectl logs <pod-name>

Explanation

The 'kubectl logs <pod-name>' command is used to view the logs of a specified pod. This is useful for debugging and monitoring applications running in pods.

Read more about Kubernetes