Difference between revisions of "Kubectl describe pods"

From wikieduonline
Jump to navigation Jump to search
 
(38 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
{{lowercase}}
 +
[[kubectl describe]] pods
 +
[[kubectl describe pods -A]] | grep [[Unhealthy]]
 +
[[kubectl describe pods (grep -w State)|kubectl describe pods]] | grep -w "[[State]]"
 +
  [[Waiting]], [[Running]]
 +
kubectl describe pods | grep "[[Last State]]"
 +
[[kubectl describe pods -A]]
 +
[[kubectl describe pods -A]] | grep -w IP
  
  [[kubectl describe]] pods
+
  [[kubectl describe pods -n kube-system aws-node]]
  
<pre>
+
== Examples ==
kubectl describe pod
+
* Example: [[kubernetes-dashboard]] in EKS: <code>[[kubectl describe pod my-release-kubernetes-dashboard]]</code>
Name:         redis
+
* [[Example: Grafana in EKS]]
Namespace:    default
+
* [[Example: Redis in minikube]]
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 ==
 +
  .../...
 +
  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]]
  
 +
  Warning  Failed        5m20s (x12 over 7m20s)  kubelet            [[Error: InvalidImageName]]
  
 +
== Related ==
 +
* <code>[[kubectl get pods]]</code>
 +
* <code>[[kubectl describe nodes]] | grep [[MemoryPressure]]</code>
 +
* <code>[[Events]]</code>
 +
* <code>[[Containers:]]</code>
 +
* <code>[[Scheduled]], [[Pulling]], [[Pulled]], [[Created]], [[Started]], [[Unhealthy]], [[Killing]]</code>
  
 
== See also ==
 
== See also ==
* {{kubectl}}
+
* {{kubectl describe pods}}
 +
* {{Pods}}
  
 
[[Category:K8s]]
 
[[Category:K8s]]

Latest revision as of 09:43, 1 May 2024

Advertising: