Why top command is not working in labs .Can you please help me . What need to be . . .

Debdoot:
why top command is not working in labs .Can you please help me . What need to be done to make top command work

unnivkn:
Did you cloned the metrics server & its running ?

Debdoot:
No can you please tell me the procedure how to clone the metric server . Is there any link in K8s docs.

unnivkn:
https://github.com/kodekloudhub/certified-kubernetes-administrator-course/blob/master/docs/04-Logging-and-Monitoring/02-Monitor-Cluster-Components.md|https://github.com/kodekloudhub/certified-kubernetes-administrator-course/blob/mas[…]docs/04-Logging-and-Monitoring/02-Monitor-Cluster-Components.md

Debdoot:
but Sir are we suppose to use this URL in exam?? It is kodekloud url right. If I use this url it is working fine https://github.com/kubernetes-sigs/metrics-server . Then y i am getting error like server is unable to handle the request ( get http://pods.metrics.k8s.io|pods.metrics.k8s.io)

Debdoot:

If anyone come here looking for troubleshooting this, include

–kubelet-insecure-tls=true

in the container argument as mentioned in the github README.md