metrics-server: EKS FailedGetResourceMetric with metric-server v0.3.3 issue
Hello Experts,
Kuberentes version: 1.14.1 Platform: Linux(ubuntu 18.04) Steps followed in setting up the kubernetes from here.
Facing below issue in kubernetes metric-server:
Name: php-apache Namespace: default Labels: <none> Annotations: <none> CreationTimestamp: Mon, 20 May 2019 10:19:28 +0000 Reference: Deployment/php-apache Metrics: ( current / target ) resource cpu on pods (as a percentage of request): <unknown> / 50% Min replicas: 1 Max replicas: 10 Deployment pods: 1 current / 0 desired Conditions: Type Status Reason Message ---- ------ ------ ------- AbleToScale True SucceededGetScale the HPA controller was able to get the target's current scale ScalingActive False FailedGetResourceMetric the HPA was unable to compute the replica count: unable to get metrics for resource cpu: unable to fetch metrics from resource metrics API: the server is currently unable to handle the request (get pods.metrics.k8s.io) Events: Type Reason Age From Message ---- ------ ---- ---- ------- Warning FailedGetResourceMetric 3m36s (x259 over 68m) horizontal-pod-autoscaler unable to get metrics for resource cpu: unable to fetch metrics from resource metrics API: the server is currently unable to handle the request (get pods.metrics.k8s.io)
Tried adding below lines to “metrics-server-deployment.yaml” as suggested here: command: - /metrics-server - --kubelet-insecure-tls - --kubelet-preferred-address-types=InternalIP
Executed below commands:
$kubectl get --raw /apis/metrics.k8s.io/
Output:
{"kind":"APIGroup","apiVersion":"v1","name":"metrics.k8s.io","versions":[{"groupVersion":"metrics.k8s.io/v1beta1","version":"v1beta1"}],"preferredVersion":{"groupVersion":"metrics.k8s.io/v1beta1","version":"v1beta1"}}
$kubectl get --raw /apis/metrics.k8s.io/v1beta1/pods
Output:
Error from server (ServiceUnavailable): the server is currently unable to handle the request
Dug up through below similar issues: #150 #131
Still, no luck, any input in this regard would be great.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 6
- Comments: 16 (7 by maintainers)
Since we moved to K8s 1.16 I am using https://github.com/kubernetes-sigs/metrics-server/tree/master/deploy/1.8%2B
I didn’t wait for the official chart. I just downloaded the 1.8 and changed it to use the new API.