When I run kubectl -n abc-namespace describe pod my-pod-zl6m6
, I get a lot of information about the pod along with the Events in the end.
Is there a way to output just the Events of the pod either using kubectl describe
or kubectl get
commands?
Edit:
This can now (kubernetes 1.29) be achieved via the following command -
kubectl -n abc-namespace events --for pod/my-pod-zl6m6
All the answers below can be ignored as they refer to older versions of kubernetes