KUBERNETES: Kubectl Command To Check Events On A Pod
Below command can be used.
kubectl alpha events pod <pod name> -n <name space>
For e.g. if you want to check the coredns pod events in kube-system namespace your command will look like this.
kubectl alpha events pod coredns-664c775d6f-nfdsg -n kube-system
Below is sample output of above command.
ainer-registry.oracle.com/olcne/kube-proxy:v1.24.15" already present on machine
13m Normal Killing Pod/kube-flannel-ds-dkjh4 Stopping container kube-flannel
13m Normal Scheduled Pod/kube-proxy-4ch2b Successfully assigned kube-system/kube-proxy-4ch2b to cne14-worker2
13m Normal SuccessfulCreate DaemonSet/kube-proxy Created pod: kube-proxy-4ch2b
13m Normal Created Pod/kube-proxy-4ch2b Created container kube-proxy
13m Normal Started Pod/kube-proxy-4ch2b Started container kube-proxy
13m Normal SuccessfulDelete DaemonSet/kube-flannel-ds Deleted pod: kube-flannel-ds-dkjh4
13m Normal Scheduled Pod/kube-flannel-ds-px4tt Successfully assigned kube-system/kube-flannel-ds-px4tt to cne14-worker1
No comments:
Post a Comment