Difference between revisions of "Kubectl top"
Jump to navigation
Jump to search
(27 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
− | <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 pod]] | ||
+ | [[kubectl top pod -A]] | ||
+ | [[kubectl top --help]] | ||
+ | * Ref: https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#top | ||
+ | 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 == | == Related terms == | ||
+ | * [[K9s]], [[Lens]] | ||
* <code>[[docker top]]</code> | * <code>[[docker top]]</code> | ||
* <code>[[docker stats]]</code> | * <code>[[docker stats]]</code> | ||
* <code>[[kubectl get pods]]</code> | * <code>[[kubectl get pods]]</code> | ||
* <code>[[kubectl top pod]] POD_NAME</code> | * <code>[[kubectl top pod]] POD_NAME</code> | ||
+ | * <code>[[kubectl logs]]</code> | ||
+ | * <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 Metrics Server]] | ||
+ | * <code>[[FailedScheduling .../... Insufficient cpu]]</code> | ||
== See also == | == See also == | ||
− | * {{kubectl}} | + | * {{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: