Difference between revisions of "Kubectl describe pods (grep -w State)"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | [[Kubectl describe pods (grep -w State)|kubectl describe pods]] | grep -w [[State]] | ||
+ | [[kubectl describe pods]] | grep -w [[State]] | grep -v [[Running]] | ||
+ | [[kubectl describe pods]] | grep -w [[State]] | grep -v [[Last]] | grep -v [[Running]] | ||
+ | |||
+ | [[kubectl describe pods]] | grep -w [[State]] | ||
+ | |||
State: [[Waiting]] | State: [[Waiting]] | ||
− | + | State: [[Running]] | |
− | |||
State: Running | State: Running | ||
State: Waiting | State: Waiting | ||
+ | Last State: [[Terminated]] | ||
Last State: Terminated | Last State: Terminated | ||
Line 26: | Line 32: | ||
Finished: Tue, 07 Mar 2023 20:40:14 +0400 | Finished: Tue, 07 Mar 2023 20:40:14 +0400 | ||
Ready: False | Ready: False | ||
− | Restart Count: 267 | + | [[Restart Count]]: 267 |
[[Liveness]]: http-get http://:http/ delay=0s timeout=1s period=10s #success=1 #failure=3 | [[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 | [[Readiness]]: http-get http://:http/ delay=0s timeout=1s period=10s #success=1 #failure=3 | ||
Line 33: | Line 39: | ||
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-8dp78 (ro) | /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-8dp78 (ro) | ||
[[Conditions:]] | [[Conditions:]] | ||
− | |||
== See also == | == See also == |
Latest revision as of 13:01, 22 February 2024
kubectl describe pods | grep -w State kubectl describe pods | grep -w State | grep -v Running kubectl describe pods | grep -w State | grep -v Last | grep -v Running
kubectl describe pods | grep -w State State: Waiting State: Running State: Running State: Waiting Last State: Terminated Last State: Terminated
Example[edit]
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[edit]
*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: