Install metrics server on kubernetes and check CPU/RAM usage of PODS and nodes

Опубликовано: 28 Сентябрь 2024
на канале: Astounding.Enterprises
5,953
51

FaceBook: Connect with us at   / astounding.enterprises  

YouTube: Please subscribe to our Youtube Channel at: https://lnkd.in/g6G4FUt

This video covers below topics
1. Installing the metrics server and editing the metric-server deployment
2. Usage of top command to check CPU and memory utilization of pods

Happy Learning...Enjoy the Video

References

Install metrics server: https://github.com/kubernetes-sigs/me...
Editing the deployment of metrics server and adding below into the deployment/metrics-server

Ref : https://github.com/kubernetes-sigs/me...

command:
- /metrics-server
- --kubelet-insecure-tls
- --kubelet-preferred-address-types=InternalIP

Restart the kubelet

Commands to check cpu and ram usage of pods and nodes

kubectl top nodes
kubectl top pods --all-namespaces -l tier=control-plane --sort-by=cpu
kubectl tope pods --all-namespaces -l tier=control-plane --sort-by=memory