Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Metrics server api not getting registered #45
I have deployed metrics api in kubernetes following https://github.com/kubernetes-incubator/metrics-server/tree/master/deploy/1.8%2B. Metric server is running fine and but I am not able to get metrics from it. I am using kubernetes 1.9 version.
`[demo@dev-demo metrics-server]$ k get hpa -n default
AbleToScale True SucceededGetScale the HPA controller was able to get the target's current scale
Warning FailedComputeMetricsReplicas 43m (x13 over 49m) horizontal-pod-autoscaler failed to get cpu utilization: unable to get metrics for resource cpu: unable to fetch metrics from API: the server could not find the requested resource (get pods.metrics.k8s.io)
Same issue as @sujithvs74
I'm running 1.9.6 on GKE.
After the deployment, if I execute
After some while I get this status:
I checked the selector attribute from the
The pod is running on my cluster and has following logs:
Running on Kubernetes v1.9.3.
SOLUTION (if you are behind Corporate Proxy)