To view the logs of a specific pod in Kubernetes, use the `kubectl logs` command. This is crucial for debugging and monitoring your applications. Simply specify the pod name and, if necessary, the container name.
kubectl logs <pod-name>
For pods with multiple containers, specify the container:
kubectl logs <pod-name> -c <container-name>