To view logs from a Kubernetes pod, use the `kubectl logs` command. This command helps you diagnose issues by providing insights into your application's runtime behavior. You can target specific containers within a pod by specifying the container name.
kubectl logs <pod-name>
For a specific container in a multi-container pod:
kubectl logs <pod-name> -c <container-name>