Difference between revisions of "Kubectl describe pods"
Jump to navigation
Jump to search
(→Events) Tags: Mobile web edit, Mobile edit |
|||
(21 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
[[kubectl describe]] pods | [[kubectl describe]] pods | ||
− | kubectl describe pods | grep [[Unhealthy]] | + | [[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 -n kube-system aws-node]] | |
− | |||
− | [[ | ||
− | |||
− | |||
− | |||
− | kubectl describe pods | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | == Examples == | ||
+ | * Example: [[kubernetes-dashboard]] in EKS: <code>[[kubectl describe pod my-release-kubernetes-dashboard]]</code> | ||
+ | * [[Example: Grafana in EKS]] | ||
+ | * [[Example: Redis in minikube]] | ||
== Events == | == Events == | ||
Line 175: | Line 19: | ||
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]] | 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 [[BackOff]] 4m32s (x23 over 9m11s) kubelet [[Back-off restarting failed container]] | ||
+ | |||
+ | Warning Failed 5m20s (x12 over 7m20s) kubelet [[Error: InvalidImageName]] | ||
== Related == | == Related == | ||
* <code>[[kubectl get pods]]</code> | * <code>[[kubectl get pods]]</code> | ||
* <code>[[kubectl describe nodes]] | grep [[MemoryPressure]]</code> | * <code>[[kubectl describe nodes]] | grep [[MemoryPressure]]</code> | ||
− | * [[Events]] | + | * <code>[[Events]]</code> |
+ | * <code>[[Containers:]]</code> | ||
+ | * <code>[[Scheduled]], [[Pulling]], [[Pulled]], [[Created]], [[Started]], [[Unhealthy]], [[Killing]]</code> | ||
== See also == | == See also == | ||
+ | * {{kubectl describe pods}} | ||
* {{Pods}} | * {{Pods}} | ||
− | |||
− | |||
[[Category:K8s]] | [[Category:K8s]] |
Latest revision as of 09:43, 1 May 2024
kubectl describe pods kubectl describe pods -A | grep Unhealthy 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 -n kube-system aws-node
Contents
Examples[edit]
- Example: kubernetes-dashboard in EKS:
kubectl describe pod my-release-kubernetes-dashboard
- Example: Grafana in EKS
- Example: Redis in minikube
Events[edit]
.../... 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[edit]
kubectl get pods
kubectl describe nodes | grep MemoryPressure
Events
Containers:
Scheduled, Pulling, Pulled, Created, Started, Unhealthy, Killing
See also[edit]
Advertising: