Difference between revisions of "Kubectl top"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(14 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
− | * <code>[[kubectl]] top</code> | + | <code>kubectl top</code> uses [[Metric server]] to display information about K8s. |
+ | * https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#top | ||
+ | |||
+ | <code>[[kubectl]] top</code> | ||
[[kubectl top node]] | [[kubectl top node]] | ||
[[kubectl top pod]] | [[kubectl top pod]] | ||
− | + | [[kubectl top pod -A]] | |
+ | [[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 10: | 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 20: | Line 24: | ||
== Related terms == | == Related terms == | ||
+ | * [[K9s]], [[Lens]] | ||
* <code>[[docker top]]</code> | * <code>[[docker top]]</code> | ||
* <code>[[docker stats]]</code> | * <code>[[docker stats]]</code> | ||
Line 25: | Line 30: | ||
* <code>[[kubectl top pod]] POD_NAME</code> | * <code>[[kubectl top pod]] POD_NAME</code> | ||
* <code>[[kubectl logs]]</code> | * <code>[[kubectl logs]]</code> | ||
− | * [[kubectl get events]] | + | * <code>[[kubectl get events]]</code> |
* [[CKA]]: [[Understand how to monitor applications in Kubernetes]] | * [[CKA]]: [[Understand how to monitor applications in Kubernetes]] | ||
− | * [[Horizontal Pod Autoscaler]] | + | * [[Horizontal Pod Autoscaler (HPA)]] |
* [[Kubernetes API]] | * [[Kubernetes API]] | ||
+ | * [[Kubernetes Metrics Server]] | ||
+ | * <code>[[FailedScheduling .../... Insufficient cpu]]</code> | ||
== 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: