Difference between revisions of "Kubectl top"

From wikieduonline
Jump to navigation Jump to search
 
(23 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 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
  
 
  kubectl top pod
 
  kubectl top pod
 
  error: [[Metrics API]] not available
 
  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
 
  kubectl top node
  error: Metrics API not available
+
  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 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

Advertising: