Skip to content
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

custom-metrics-stackdriver-adapter - couldn't get resource list for external.metrics.k8s.io/v1beta1: Got empty response for: external.metrics.k8s.io/v1beta1 #523

Closed
oprudkyi opened this issue Mar 4, 2023 · 3 comments

Comments

@oprudkyi
Copy link

oprudkyi commented Mar 4, 2023

Hi,

after update to 1.25.6-gke.200 each run of kubectl produces warning messages (seems they didn't affect functionality though)

kubectl get pods
E0304 11:26:51.613869  858314 memcache.go:255] couldn't get resource list for external.metrics.k8s.io/v1beta1: Got empty response for: external.metrics.k8s.io/v1beta1

i.e. the empty response handled as error

kubectl get --raw '/apis/external.metrics.k8s.io/v1beta1'            
{"kind":"APIResourceList","apiVersion":"v1","groupVersion":"external.metrics.k8s.io/v1beta1","resources":[]}

it seems like a bug introduced in service discovery
kubernetes-sigs/custom-metrics-apiserver#146

bit KEDA has workaround kedacore/keda#4224 (comment) for this (see comment)
is there any way to have similar workaround for custom-metrics-stackdriver-adapter as well ? some sort of dummy metric ?

@oprudkyi
Copy link
Author

oprudkyi commented Mar 4, 2023

original kubectl v1.25.7 doesn't have issues https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/

@oprudkyi oprudkyi closed this as completed Mar 4, 2023
@a-candiotti-pvotal
Copy link

i have the same pb with:
Client Version: v1.26.2
Server Version: v1.24.9-gke.3200

@mal-berbatov-ci
Copy link

mal-berbatov-ci commented Jun 5, 2024

Same problem here

Client Version: v1.27.10
Server Version: v1.27.12-gke.1115000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants