Keda: Issue with api-resources and custom.metrics.k8s.io

Created on 18 Apr 2019  路  9Comments  路  Source: kedacore/keda

After deploying via the current master branch deploy, things seem to setup ok but when I run kubectl api-resources I get the following:

error: unable to retrieve the complete list of server APIs: custom.metrics.k8s.io/v1beta1: the server could not find the requested resource

Tried on a fresh install and same thing.

Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.4", GitCommit:"c27b913fddd1a6c480c229191a087698aa92f0b1", GitTreeState:"clean", BuildDate:"2019-03-01T23:34:27Z", GoVersion:"go1.12", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.9", GitCommit:"16236ce91790d4c75b79f6ce96841db1c843e7d2", GitTreeState:"clean", BuildDate:"2019-03-25T06:30:48Z", GoVersion:"go1.10.8", Compiler:"gc", Platform:"linux/amd64"}

bug

All 9 comments

But something is wonky because I don't get 1->n scaling and in the logs I see:

GET /apis/custom.metrics.k8s.io/v1beta1: (389.519碌s) 404

so KEDA is unable to poll my custom metrics adapter to drive scaling

I have not hooked up the custom metrics adapter- just the extrenal metrics one. I have the empty implementation. Will hook it up to avoid these errors.

@Aarthisk @jeffhollan Is keda actually serving custom metrics? If not, should the custom metrics api be registered if KEDA isn't providing anything there & doesn't intend to?

My bet would be yes given it needs to give input to the HPA, but that's a guess

@tomkerkhove AFAIK keda is only serving external metrics, not custom (there are two separate metric apis for adapters to use).

Ok for you if I PR to remove the custom metrics?

Ok for you if I PR to remove the custom metrics?

Not yet please.
@Aarthisk did you get to test KEDA without custom metrics?

Ok for you if I PR to remove the custom metrics?

Not yet please.
@Aarthisk did you get to test KEDA without custom metrics?

Keda works great even without custom metrics.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aman-bansal picture aman-bansal  路  4Comments

sebastianspross picture sebastianspross  路  3Comments

tomkerkhove picture tomkerkhove  路  4Comments

alexakr picture alexakr  路  4Comments

genadyk picture genadyk  路  3Comments