kubernetes-sigs / metrics-server

Scalable and efficient source of container resource metrics for Kubernetes built-in autoscaling pipelines.
https://kubernetes.io/docs/tasks/debug-application-cluster/resource-metrics-pipeline/
Apache License 2.0
5.83k stars 1.87k forks source link

Error when deploying #1524

Open IQHT-DGH opened 4 months ago

IQHT-DGH commented 4 months ago

I have just created a new AKS Cluster, and upon installing metrics server so that we are able to implement HPA.

Upon running the kubectl command...

It appeared to get almost to the end and the following appeared...

The Deployment "metrics-server" is invalid:

Environment:

spoiler for Metrics Server manifest:
spoiler for Kubelet config:
spoiler for Metrics Server logs:
spolier for Status of Metrics API: ```sh kubectl describe apiservice v1beta1.metrics.k8s.io ```

/kind bug

dgrisonnet commented 3 months ago

/triage accepted /assign @yangjunmyfm192085

yangjunmyfm192085 commented 3 months ago

hi, @IQHT-DGH maybe you can check if there are any resource limits like LimitRange configured in the cluster?

IQHT-DGH commented 3 months ago

Hi,

Thank you for your assistance, at the time of reporting this issue this was a freshly created AKS server where no specific limit ranges have been created by ourselves. Having reviewed the cluster again this morning I am able to see two metrics server pods in the kube-system namespace (although it isn't working correctly, and we'd love to be able to get HPA working) and there are no limit ranges imposed see images from lens...

[cid:544de976-1e0f-4728-8300-465e69fc44ea]

[cid:65509759-5a6a-41b0-9c87-c80211023f80]

Damian Hill

Solution Architect & Tech Lead iQemo

[image]

iQ HealthTech Limited, Hanover House, 5 Hanover Close

Christchurch, BH23 2FA, UK

www.iQHealthTech.comhttp://www.iqhealthtech.com/ | Linkedinhttps://uk.linkedin.com/company/iq-healthtech | Twitterhttps://twitter.com/iqhealthtech


From: JUN YANG @.> Sent: 26 July 2024 12:24 AM To: kubernetes-sigs/metrics-server @.> Cc: Damian Hill @.>; Mention @.> Subject: Re: [kubernetes-sigs/metrics-server] Error when deploying (Issue #1524)

hi, @IQHT-DGHhttps://github.com/IQHT-DGH maybe you can check if there are any resource limits like LimitRange configured in the cluster?

— Reply to this email directly, view it on GitHubhttps://github.com/kubernetes-sigs/metrics-server/issues/1524#issuecomment-2251561491, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVFMUCJADC7U6GSPDP7D4F3ZOGCJRAVCNFSM6AAAAABK2GQZHWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJRGU3DCNBZGE. You are receiving this because you were mentioned.Message ID: @.***>

yangjunmyfm192085 commented 3 months ago

It looks like the same issue as this one. https://github.com/kubernetes-sigs/metrics-server/issues/1205. Looks like it's AKS related.