-
-
Notifications
You must be signed in to change notification settings - Fork 286
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
Popeye Error Got empty response for: external.metrics.k8s.io/v1beta1
#249
Comments
Got empty response for: external.metrics.k8s.io/v1beta1
Got something similar. In my cast it is:
Kubernetes is a bit older, 1.20.x (on premise, Rancher 2) and 1.21.x (AWS) |
When I delete the "offending" apiservice, popeye complains it is not there. When I recreate it, it is available again, but still popeye complains. Relevant pods are all up and running. |
Any news here? #258 seems related but there is no response there either 🤔 |
Thank you all for piping in! |
@nickv2002 do you think that this commit to Keda , |
This problem looks related with this issue in the tooling: kubernetes-sigs/custom-metrics-apiserver#146 |
I'm unable to confirm as I've left the company where I experienced this issue. Thanks for all the work fixing it though! |
I don't think this is fixed:
|
Hi, Line 19 in 7df5c6e
Disclaimer: I have no idea about this repo, I'm a maintainer of KEDA and I found this issue because it was linked to an issue in KEDA. If you are using KEDA and you are affected by this, you can bump KEDA to latest version, it will mitigate the issue even though the tools are still using affected versions |
@JorTurFer got it, thanks! That is indeed very helpful! I naively assumed popeye was just invoking the installed Unfortunately this issue isn't caused by KEDA for me, it's the standard GKE metrics adapter. @derailed is it possible to bump this dependency? |
@JorTurFer sorry you got tagged all over the place on this issue, but thanks for the friendliness and helpfulness in your responses. For the PR kubernetes/kubernetes#115978 which you mentioned, it looks like this is the associated commit: which has been tagged in everything higher than v1.27.0-beta.0 I'm looking at the go.mod for client-go: https://github.com/kubernetes/client-go/blob/master/go.mod |
I'm not totally sure, but I think that it's because the package is part of the same repo, in any case, the repo that needs the bump is this repo, as it's a client issue, and this repo uses the client library |
https://github.com/kubernetes/client-go is a different repo , which pulls in code from https://github.com/kubernetes/kubernetes/ So the dependencies are: popeye/go.mode -> client-go -> kubernetes A bit difficult for me to figure out exactly what version of client-go pulls in the right fix. |
This is the commit in client-go: kubernetes/client-go@0bc9170 |
Thanks for hunting for that commit. So I think that means, They must use client-go with either:
There are many users of client-go, including some big names like:
|
Any project written in Golang who access to K8s api is can be affected because the way of going programmatically, it's using that dependency instead of kubectl. |
The referenced fix is only for the memory cached client. The fix is unfortunately not as simple as just bumping the dependency. |
Hi! Is there a current workaround or solution for this issue? My team is trying to use this tool but we're all stuck with this error. We have installed the latest version of popeye |
I didn't try it but it should be possible to create "dummy" objects of the type that is throwing errors so that it doesn't return an empty list. If you give it a try please report back :) |
Fixed v0.20.0 |
Describe the bug
Running
popeye
with no args errors out with message:I can still run normal commands with
kubectl
andk9s
. EG:Unlike the answers suggested for #171 the offending apiservice is available and working (as far as I know):
To Reproduce
Run
popeye
with no args, see error.Expected behavior
Popeye should work
Versions (please complete the following information):
Additional context
Is there any CLI arg I could use to tell Popeye to ignore this
apiservice
?The text was updated successfully, but these errors were encountered: