Kubernetes version: 1.22.3
Cloud being used: bare-metal
Host OS: Ubunto 20.04
CNI and version:
CRI and version:
The pods status I get when running “kubectl get pods” is different than the pods status I get when running “kubectl get pods -o=custom-columns=NAME:.metadata.name,STATUS:.status.phase”.
Specifically I see that when the pod status is “Terminated” when running the first command, it is “Running” when running the latter.
Here is a screenshot that shows this scenario.
Obviously the status.phase is not the same status as the one provided by “kubectl get pods”, but I haven’t found any way to get this status when using the custom-columns option.
Is there anyway to do it?