metrics-server
metrics-server copied to clipboard
AKS 1.24 - * spec.template.spec.containers[0].resources.requests: Invalid value: "100m": must be less than or equal to cpu limit * spec.template.spec.containers[0].resources.requests: Invalid value: "200Mi": must be less than or equal to memory limit
Hi,
I am running into this issue when running an AKS cluster with 1.24 and 1.25 versions.
Command used kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/download/metrics-server-helm-chart-3.8.3/components.yaml
This error is consistent no matter the version of metrics server used on the cluster. AKS 1.23 cluster doesnt have the issue. I also do not see this issue on EKS 1.24 either
Error The Deployment "metrics-server" is invalid:
- spec.template.spec.containers[0].resources.requests: Invalid value: "100m": must be less than or equal to cpu limit
- spec.template.spec.containers[0].resources.requests: Invalid value: "200Mi": must be less than or equal to memory limit
I have 2 nodepools with the same vm size Standard_D8_v3, which has 8vcpu's and 32GiB Memory
kubectl get nodes output NAME CPU(cores) CPU% MEMORY(bytes) MEMORY% aks-pool1-xxx-vmss000000 110m 1% 4032Mi 14% aks-default-xxx-vmss000000 175m 2% 3599Mi 12%
AKS 1.24
My current workaround was to download the chart, remove the resource section, and run which works, but its not ideal since it does not have the necessary resource requirement
Happy to provide further information /kind support