I created a Pod with two container – one container was successfully created, while other container failed.
Now, when I execute below command then I see that “Status” is “Error”:
C:\Users\test123>kubectl get pod pod3-two-nginx-containers-port-error
NAME READY STATUS RESTARTS AGE
pod3-two-nginx-containers-port-error 1/2 Error 0 134m
But when I execute below command then I see that "Status" is "Running":
C:\Users\test123>kubectl describe pod pod3-two-nginx-containers-port-error
Name: pod3-two-nginx-containers-port-error
Namespace: default
Priority: 0
Node: minikube/192.168.49.2
Start Time: Thu, 18 Mar 2021 12:50:19 +0530
Labels: <none>
Annotations: <none>
Status: Running
IP: 10.244.0.9
IPs:
Why Kubernetes is showing wrong statuses?