Kubernetes Fundamentals (LFS258): Helm and Kustomize, Lab 8.1

The metrics API is not available, although pod is installed and running properly, maybe a network connectivity problem:

student@cp:(⎈|default):~/metrics-server$ kubectl get pods -n kube-system | grep metrics
metrics-server-76bff4d78b-p89j8   1/1     Running   0              10m
student@cp:(⎈|default):~/metrics-server$ kubectl top pods
error: Metrics API not available
student@cp:(⎈|default):~/metrics-server$ 

Answers

  • chrispokorni
    chrispokorni Posts: 2,634

    Hi @flora,

    I attempted to reproduce the reported error but was not able to. The metrics-server may need to run for 1 or 2 minutes before being able to serve node and pod metrics, but yours seems to have been active for 10 minutes (per the provided terminal capture).

    If this happens again, would you be able to provide one additional detail: the node hosting the metrics-server pod. You can capture the node with:

    kubectl get pods -n kube-system -o wide | grep metrics
    

    Regards,
    -Chris

Categories

Upcoming Training