Master 'kubectl logs pod' for Effective Debugging

The `kubectl logs pod` command is crucial for debugging and monitoring applications running in Kubernetes. It allows users to fetch and view the logs of a specific pod, helping to diagnose issues or understand application behavior. To view logs from a specific pod, use the command:

kubectl logs <pod-name>

For logs from a specific container within a pod, use:

kubectl logs <pod-name> -c <container-name>

These commands help streamline troubleshooting by providing immediate access to application logs.