Debugging
Pod Monitoring and Logging
Describe deployments or pods for obtaining the subsequent events.
$ kubectl describe po/<pod-name>
Replace <pod-name> with the name of your pod.
Get the pod logs using the below command.
$ kubectl logs <pod-name>
Exec into the pod
$ kubectl exec -it <pod-name> /bin/bash
$ ps -ef
$ exit
Thanks for reading. Hope you're having a good day!
Last updated
Was this helpful?