Difference between revisions of "Kubectl describe pods"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 10: Line 10:
 
* [[Example: Grafana in EKS]]
 
* [[Example: Grafana in EKS]]
  
=== Example: Redis in minikube ===
+
* [[Example: Redis in minikube]]
<pre>
 
kubectl describe pod
 
Name:        redis
 
Namespace:    default
 
Priority:    0
 
Node:        minikube/192.168.99.100
 
Start Time:  Sat, 17 Jul 2021 20:07:06 +0400
 
Labels:      <none>
 
Annotations:  <none>
 
Status:      Running
 
IP:          172.17.0.5
 
IPs:
 
  IP:  172.17.0.5
 
Containers:
 
  redis:
 
    Container ID:  docker://f1bf24ad3f84de2d7bdd6a6d734d8f8b051c99ab7b138abfcdfd6af2283c4116
 
    Image:          redis
 
    Image ID:      docker-pullable://redis@sha256:b6a9fc3535388a6fc04f3bdb83fb4d9d0b4ffd85e7609a6ff2f0f731427823e3
 
    Port:          <none>
 
    Host Port:      <none>
 
    State:          Running
 
      Started:      Sat, 17 Jul 2021 20:07:42 +0400
 
    Ready:          True
 
    Restart Count:  0
 
    Environment:    <none>
 
    Mounts:
 
      /data/redis from redis-storage (rw)
 
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-sck6w (ro)
 
Conditions:
 
  Type              Status
 
  Initialized      True
 
  Ready            True
 
  ContainersReady  True
 
  PodScheduled      True
 
Volumes:
 
  redis-storage:
 
    Type:      EmptyDir (a temporary directory that shares a pod's lifetime)
 
    Medium:
 
    SizeLimit:  <unset>
 
  kube-api-access-sck6w:
 
    Type:                    Projected (a volume that contains injected data from multiple sources)
 
    TokenExpirationSeconds:  3607
 
    ConfigMapName:          kube-root-ca.crt
 
    ConfigMapOptional:      <nil>
 
    DownwardAPI:            true
 
QoS Class:                  BestEffort
 
Node-Selectors:              <none>
 
Tolerations:                node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
 
                            node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
 
Events:                      <none>
 
</pre>
 
 
 
  
 
== Events ==
 
== Events ==

Revision as of 16:48, 7 March 2023

kubectl describe pods
kubectl describe pods | grep Unhealthy
kubectl describe pods | grep -w "State"
kubectl describe pods | grep "Last State"
kubectl describe pods -A

Examples

Events

 .../...
 Normal   Pulled                  7m50s (x4 over 9m12s)   kubelet                  Container image "123243534.dkr.ecr.eu-central-1.amazonaws.com/your_proyect/elasticsearch:latest" already present on machine
 Warning  BackOff                 4m32s (x23 over 9m11s)  kubelet                  Back-off restarting failed container

Related

See also

Advertising: