Sunday, 22 November 2020

Monitoring kubernetes cluster using metric server

 Purpose: monitor resource consumption in kubernetes cluster.

1.Install metric server

Download and create metric server deployment:
#git clone 
#cd kubernetes-metrics-server
#kubectl create -f .

2. Monitoring

Get nodes information:
#kubectl top node

Get pods information (do not forget to add namespace if not default!):
#kubectl top pod

📕 Note: metric server keeps information only in memory and not store it!

No comments: