Command
kubectl logs <pod-name>
Explanation
Fetches logs output for debugging.
Examples
Show logs for that pod
kubectl logs my-app-pod-1234
Logs for specific container
kubectl logs my-app-pod-1234 -c container1
kubectl logs <pod-name>
Fetches logs output for debugging.
Show logs for that pod
kubectl logs my-app-pod-1234
Logs for specific container
kubectl logs my-app-pod-1234 -c container1