To view logs from a specific pod in Kubernetes, you can use the `kubectl logs` command. This is useful for debugging and monitoring the behavior of applications running in your pods. For instance, to get logs from a pod named `my-pod`, use the following command:
kubectl logs my-pod
If your pod has multiple containers, specify the container name:
kubectl logs my-pod -c my-container