Editing Kubectl describe pod

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
[[kubectl describe]] pod YOUR_POD
 
[[kubectl describe]] pod YOUR_POD -n YOUR_NAMESPACE
 
* https://kubernetes.io/docs/tasks/debug/debug-application/debug-running-pod/
 
[[kubectl describe]] pod | grep -i start
 
[[kubectl describe]] pod | grep "Start Time"
 
  
  
* <code>[[kubectl logs]] yourpodname -c containername --previous</code>
 
  
  
== Grafana ==
 
 
  .../...
 
  .../...
 
  Name:          grafana-6d966d974b-xsvv4
 
  Name:          grafana-6d966d974b-xsvv4
Line 16: Line 9:
 
  Priority:      0
 
  Priority:      0
 
  Node:          ip-192-168-54-235.us-east-2.compute.internal/
 
  Node:          ip-192-168-54-235.us-east-2.compute.internal/
  [[Start Time]]:    Sun, 28 Nov 2021 21:31:50 +0300
+
  Start Time:    Sun, 28 Nov 2021 21:31:50 +0300
 
  Labels:        app.kubernetes.io/instance=grafana
 
  Labels:        app.kubernetes.io/instance=grafana
 
                 app.kubernetes.io/name=grafana
 
                 app.kubernetes.io/name=grafana
Line 25: Line 18:
 
                 checksum/secret: f2d8a89d88995eef4432cbfcf48f0f1d46d2b292e6ce6d45a8c7ee2e1971e8c2
 
                 checksum/secret: f2d8a89d88995eef4432cbfcf48f0f1d46d2b292e6ce6d45a8c7ee2e1971e8c2
 
                 kubernetes.io/psp: eks.privileged
 
                 kubernetes.io/psp: eks.privileged
  Status:        [[Failed]]
+
  Status:        Failed
  [[Reason:]]         Evicted
+
  Reason:        Evicted
  Message:        [[Pod The node had condition:]] [MemoryPressure].
+
  Message:        Pod The node had condition: [MemoryPressure].
 
  IP:
 
  IP:
 
  IPs:            <none>
 
  IPs:            <none>
Line 45: Line 38:
 
       /var/lib/grafana from storage (rw)
 
       /var/lib/grafana from storage (rw)
 
       /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-w7v9x (ro)
 
       /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-w7v9x (ro)
  Containers:
+
<pre>
    grafana:
+
  Containers:
    Image:      grafana/grafana:8.2.5
+
  grafana:
    Ports:      80/TCP, 3000/TCP
+
    Image:      grafana/grafana:8.2.5
    Host Ports:  0/TCP, 0/TCP
+
    Ports:      80/TCP, 3000/TCP
    Liveness:    http-get http://:3000/api/health delay=60s timeout=30s period=10s #success=1 #failure=10
+
    Host Ports:  0/TCP, 0/TCP
    Readiness:  http-get http://:3000/api/health delay=0s timeout=1s period=10s #success=1 #failure=3
+
    Liveness:    http-get http://:3000/api/health delay=60s timeout=30s period=10s #success=1 #failure=10
    Environment:
+
    Readiness:  http-get http://:3000/api/health delay=0s timeout=1s period=10s #success=1 #failure=3
      GF_SECURITY_ADMIN_USER:      <set to the key 'admin-user' in secret 'grafana'>      Optional: false
+
    Environment:
      GF_SECURITY_ADMIN_PASSWORD:  <set to the key 'admin-password' in secret 'grafana'>  Optional: false
+
      GF_SECURITY_ADMIN_USER:      <set to the key 'admin-user' in secret 'grafana'>      Optional: false
      GF_PATHS_DATA:              /var/lib/grafana/
+
      GF_SECURITY_ADMIN_PASSWORD:  <set to the key 'admin-password' in secret 'grafana'>  Optional: false
      GF_PATHS_LOGS:              /var/log/grafana
+
      GF_PATHS_DATA:              /var/lib/grafana/
      GF_PATHS_PLUGINS:            /var/lib/grafana/plugins
+
      GF_PATHS_LOGS:              /var/log/grafana
      GF_PATHS_PROVISIONING:      /etc/grafana/provisioning
+
      GF_PATHS_PLUGINS:            /var/lib/grafana/plugins
    Mounts:
+
      GF_PATHS_PROVISIONING:      /etc/grafana/provisioning
      /etc/grafana/grafana.ini from config (rw,path="grafana.ini")
+
    Mounts:
      /var/lib/grafana from storage (rw)
+
      /etc/grafana/grafana.ini from config (rw,path="grafana.ini")
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-w7v9x (ro)
+
      /var/lib/grafana from storage (rw)
Volumes:
+
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-w7v9x (ro)
  config:
+
Volumes:
    Type:      ConfigMap (a volume populated by a ConfigMap)
+
  config:
    Name:      grafana
+
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Optional:  false
+
    Name:      grafana
  storage:
+
    Optional:  false
    Type:      PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
+
  storage:
    ClaimName:  grafana
+
    Type:      PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
    ReadOnly:  false
+
    ClaimName:  grafana
  kube-api-access-w7v9x:
+
    ReadOnly:  false
    Type:                    Projected (a volume that contains injected data from multiple sources)
+
  kube-api-access-w7v9x:
    TokenExpirationSeconds:  3607
+
    Type:                    Projected (a volume that contains injected data from multiple sources)
    ConfigMapName:          kube-root-ca.crt
+
    TokenExpirationSeconds:  3607
    ConfigMapOptional:      <nil>
+
    ConfigMapName:          kube-root-ca.crt
    DownwardAPI:            true
+
    ConfigMapOptional:      <nil>
[[QoS Class]]:                  [[BestEffort]]
+
    DownwardAPI:            true
Node-Selectors:              <none>
+
QoS Class:                  BestEffort
Tolerations:                node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
+
Node-Selectors:              <none>
                              node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
+
Tolerations:                node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
Events:                      <none>
+
                            node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
.../...
+
Events:                      <none>
 
+
.../...
== Events ==
+
</pre>
Events:
 
  Type    Reason                  Age                  From                    Message
 
  ----    ------                  ----                  ----                    -------
 
  Normal  Scheduled              15m                  default-scheduler        Successfully assigned YOUR-NAMESPACE/elasticsearch-master-0 to  ip-192-168-9-81.eu-central-1.compute.internal
 
  Normal  SuccessfulAttachVolume  15m                  attachdetach-controller  AttachVolume.Attach succeeded for volume "pvc-db941c9a-204a-4e66-aa7b-f776dfc892dc"
 
  Normal  Pulling                13m (x4 over 14m)    kubelet                  Pulling image "123456789.dkr.ecr.eu-central-1.amazonaws.com/your_project/elasticsearch:v0.6"
 
    Warning  Failed                  13m (x4 over 14m)    kubelet                  Failed to pull image "123456789.dkr.ecr.eu-central- 1.amazonaws.com/your_project/elasticsearch:v0.6": rpc error: code = Unknown desc = Error response from daemon: manifest for 123456789.dkr.ecr.eu-central-1.amazonaws.com/your_project/elasticsearch:v0.6 not found: manifest unknown: [[Requested image not found]]
 
  Warning  Failed                  13m (x4 over 14m)    kubelet                  Error: ErrImagePull
 
  Warning  Failed                  13m (x6 over 14m)    kubelet                  Error: [[ImagePullBackOff]]
 
  Normal  BackOff                4m50s (x43 over 14m)  kubelet                  Back-off pulling image "123456789.dkr.ecr.eu-central- 1.amazonaws.com/your_project/elasticsearch:v0.6"
 
 
 
 
 
Events
 
  Normal  Pulling                6m46s (x4 over 8m18s)  kubelet                  Pulling image "550886787118.dkr.ecr.eu-central-1.amazonaws.com/ef/elasticsearch:v0.6"
 
  Warning  Failed                  6m46s (x4 over 8m18s)  kubelet                  Failed to pull image "123456789.dkr.ecr.eu-central-1.amazonaws.com/ef/elasticsearch:v0.6": rpc error: code = Unknown desc = Error response from daemon: repository 123456789.dkr.ecr.eu-central-1.amazonaws.com/ef/elasticsearch not found: name unknown: [[The repository with name]] 'your-project/elasticsearch' [[does not exist in the registry]] with id '123456789'
 
  Warning  Failed                  6m46s (x4 over 8m18s)  kubelet                  Error: ErrImagePull
 
  Warning  Failed                  6m33s (x6 over 8m17s)  kubelet                  Error: ImagePullBackOff
 
 
 
== News ==
 
* [[v1.25]] Aug 2022 Added Service Account field in the output of kubectl describe pod command
 
 
 
 
 
  
== Related ==
 
* <code>[[kubectl get pod]]</code>
 
* <code>[[kubectl get events]]</code>
 
  
 
== See also ==
 
== See also ==
* {{kubectl describe}}
+
* {{kubectl}}
 
* {{kubectl info}}
 
* {{kubectl info}}
  
 
[[Category:Kubernetes]]
 
[[Category:Kubernetes]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: