To view logs from a Kubernetes pod, use the `kubectl logs` command. This allows you to troubleshoot and monitor applications effectively. You can specify a container if the pod has multiple containers.
kubectl logs <pod-name>
For a specific container within the pod:
kubectl logs <pod-name> -c <container-name>