WHY?
– Get node CPU/RAM usages
– Can create Horizontal Pod Autoscaler (HPA)
– Light weight
git clone https://github.com/kubernetes-sigs/metrics-server.git
- Edit
metrics-server/manifests/base/deployment.yaml
and add below lines to args
args:
- --cert-dir=/tmp
- --secure-port=4443
- --kubelet-preferred-address-types=InternalIP,Hostname,InternalDNS,ExternalDNS,ExternalIP
- --kubelet-use-node-status-port #Deprecated metrics-server:v0.3.7
- --kubelet-insecure-tls
kubectl apply -f metrics-server/manifests/base
- To get node metrics run
kubectl get top node