Hello Everyone, am getting below error while doing kubectl top pods --sort-by=cp . . .

Rahul Tiwari:
Hello Everyone, am getting below error while doing kubectl top pods --sort-by=cpu -n finance. can someone tell me what i did wrong here.

Tej_Singh_Rana:
Hello, @Rahul Tiwari
metrics server is installed?

Rahul Tiwari:
@Tej_Singh_Rana sorry but how to check that

Tej_Singh_Rana:
By checking metrics server pods?

kubectl get ns --> If deployed in specific namespace
kubectl get po -A --> To list all the available pods, identify metrics server pods.

Rahul Tiwari:
Got it

Rahul Tiwari:
Thank you @Tej_Singh_Rana