Difference between revisions of "Kubectl top"
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
<code>[[kubectl]] top</code> | <code>[[kubectl]] top</code> | ||
− | |||
− | |||
[[kubectl top node]] | [[kubectl top node]] | ||
[[kubectl top pod]] | [[kubectl top pod]] | ||
+ | [[kubectl top pod -A]] | ||
[[kubectl top --help]] | [[kubectl top --help]] | ||
* Ref: https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#top | * Ref: https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#top | ||
Line 15: | Line 14: | ||
kubectl top pod | kubectl top pod | ||
− | Error from server ([[ServiceUnavailable]]): the server is currently unable to handle the request (get pods.metrics.k8s.io) | + | Error from server ([[ServiceUnavailable]]): the server is currently unable to handle the request (get [[pods.metrics.k8s.io]]) |
kubectl top node | kubectl top node | ||
Line 40: | Line 39: | ||
== See also == | == See also == | ||
* {{kubectl top}} | * {{kubectl top}} | ||
− | |||
* {{top}} | * {{top}} | ||
− | |||
[[Category:Kubernetes]] | [[Category:Kubernetes]] |
Latest revision as of 17:48, 28 February 2024
kubectl top
uses Metric server to display information about K8s.
kubectl top
kubectl top node
kubectl top pod
kubectl top pod -A
kubectl top --help
kubectl top pod error: Metrics API not available
kubectl top pod Error from server (ServiceUnavailable): the server is currently unable to handle the request (get pods.metrics.k8s.io)
kubectl top node error: Metrics API not available
kubectl top node Error from server (ServiceUnavailable): the server is currently unable to handle the request (get nodes.metrics.k8s.io)
Related terms[edit]
- K9s, Lens
docker top
docker stats
kubectl get pods
kubectl top pod POD_NAME
kubectl logs
kubectl get events
- CKA: Understand how to monitor applications in Kubernetes
- Horizontal Pod Autoscaler (HPA)
- Kubernetes API
- Kubernetes Metrics Server
FailedScheduling .../... Insufficient cpu
See also[edit]
kubectl top [ node | pod ], nodes.metrics.k8s.io, metrics-server
top
,ntop
,htop
,atop
,iotop
,systemd-cgtop
,virt-top
,stress
,slabtop
,docker stats
,docker top
,docker container top
,docker-compose top
,nmon
,tload
,kubectl top pod PODNAME
,sar
,kubectl top
,glances
,vmstat, gpustat, asitop
Advertising: