Difference between revisions of "Kubectl describe pods (grep -w State)"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | |||
+ | [[kubectl describe pods]] | ||
+ | |||
State: [[Waiting]] | State: [[Waiting]] | ||
Last State: [[Terminated]] | Last State: [[Terminated]] |
Revision as of 12:57, 22 February 2024
kubectl describe pods State: Waiting Last State: Terminated State: Running State: Running State: Waiting Last State: Terminated
Example
Controlled By: ReplicaSet/chart-1678126668-xx-7886b95b65 Containers: your-container-name: Container ID: containerd://62fcc290bb4d9d7389515e460a65c5160f80b147cd5b2805af79c44a0fe6264b Image: 123456789.dkr.ecr.us-east-1.amazonaws.com/repo-name:dev-d155bda84b97c422df3b62d40a9dee306d242b8a-222 Image ID: 123456789.dkr.ecr.us-east-1.amazonaws.com/repo-name@sha256:5db096d5e72b57dff3c725604736048cd63f45ccedb3895f51b3b271230acaec Port: 80/TCP Host Port: 0/TCP State: Waiting Reason: CrashLoopBackOff Last State: Terminated Reason: Error Exit Code: 1 Started: Tue, 07 Mar 2023 20:40:13 +0400 Finished: Tue, 07 Mar 2023 20:40:14 +0400 Ready: False Restart Count: 267 Liveness: http-get http://:http/ delay=0s timeout=1s period=10s #success=1 #failure=3 Readiness: http-get http://:http/ delay=0s timeout=1s period=10s #success=1 #failure=3 Environment: <none> Mounts: /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-8dp78 (ro) Conditions:See also
*kubectl describe pods
* K8s troubleshooting:kubectl logs, kubectl top, kubectl get events -A, kubectl describe pod
, Liveness, Readiness,Kubernetes events
, Pulling image, OOMKilled, ProbeWarning, Reason,FailedScheduling
,errImagePull, ImagePullBackOff
, Kubelet conditions:MemoryPressure, DiskPressure, KubeletHasSufficientPID, KubeletReady, kubectl [ debug | attach | exec ] kubectl cluster-info dump, SimKube, KWOK
Advertising: