-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metrics server 0.6.4 returns 404 for service discovery #1410
Comments
No idea if this is useful or easy to debug, but I thought I'd report this in case anyone else if having this issue. I've reverted to 0.6.3 for now and it all seems fine. |
This is very strange. metrics-server v0.6.3 to v0.6.4 are basically unchanged By the way, why do you use port 10250 to access apiserver? This port should be the kubelet port by default. |
I've honestly know idea on the port issue, I've not changed anything on that from the defaults as far as I know. That was just the error message from k8s apiservice I was quoting. Possibly that expands the port number. |
/assign @yangjunmyfm192085 |
exact same issue with metrics-server v0.7.0 on EKS Fargate (k8s version is 1.26). However, this problem did not occur with metrics-server v0.6.4. |
I had exactly the same issue using both helm charts 3.11.0 and 3.10.0 with metrics-server 0.6.4 and 0.6.3 running on EKS Fargate. The default container port has changed from Restoring metrics-server container port back to containerPort: 4443 |
See #1026 for more details on why this change was made. Fargate is one of the few situations (along with IMO this pattern is becoming common enough that AWS should add it to its Fargate documentation. In the meantime, similar to the cert-manager doc mentioned above, it feels like it might be worth adding this workaround to the EKS section of the Known Issues doc (I'm happy to open this PR). |
What happened:
Upgraded metrics-server from 0.6.3 to 0.6.4 on k8s 1.27 on EKS. After doing so, apiservice discovery failed with the metrics server returning a 404 to the probe. Reverting to 0.6.3 resolved the issue.
What you expected to happen:
Metrics server continues to function.
Anything else we need to know?:
Instead service discovery from apiservice fails with:
failing or missing response from https://10.252.25.64:10250/apis/metrics.k8s.io/v1beta1: bad status from https://10.252.25.64:10250/apis/metrics.k8s.io/v1beta1: 404
After reverting to 0.6.3 it's fine again.
Environment:
EKS.
Amazon EKS CNI.
kubectl version
):Client Version: version.Info{Major:"1", Minor:"26+", GitVersion:"v1.26.10-eks-e71965b", GitCommit:"59abc9f4aa3073d5b8283627e77e98703ef4ad97", GitTreeState:"clean", BuildDate:"2023-11-14T10:00:51Z", GoVersion:"go1.20.10", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:"1", Minor:"27+", GitVersion:"v1.27.9-eks-5e0fdde", GitCommit:"3f8ed3d5017d988600f597734a4851930eda35a6", GitTreeState:"clean", BuildDate:"2024-01-02T20:34:38Z", GoVersion:"go1.20.12", Compiler:"gc", Platform:"linux/amd64"}
Unchanged chart 3.9.0 from https://kubernetes-sigs.github.io/metrics-server/
Fargate defaults.
Server seems to be running fine.
FailedDiscovery due to bad status.
/kind bug
The text was updated successfully, but these errors were encountered: