-
Notifications
You must be signed in to change notification settings - Fork 178
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
Disable priority and fairness by default #171
Conversation
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
This issue is currently awaiting triage. If custom-metrics-apiserver contributors determine this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dgrisonnet The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
/hold Feel free to unhold |
I tested locally and unit tests passed. |
Thanks for the review @CatherineF-dev :) /unhold |
I did an E2E test and found this error. Not sure whether we should do code-gen in custom-metrics-apiserver or not.
https://github.com/kubernetes/apiserver/blob/master/pkg/server/routes/openapi.go#L43 |
@CatherineF-dev was that after this specific commit? Or when you tried updating your deps from the old version to the latest? Because it sounds unrelated to that change. From the look of it, it could be that you are just building the OpenAPI v3 spec instead of building both v2 and v3. |
Yes, I tried updating deps from the old version to the latest for https://github.com/GoogleCloudPlatform/k8s-stackdriver/tree/master/custom-metrics-stackdriver-adapter.
Thanks for it! |
prometheus-adapter is still using sigs.k8s.io/custom-metrics-apiserver v1.27.0. https://github.com/kubernetes-sigs/prometheus-adapter/blob/master/go.mod#L23 Will upgrade dependencies to sigs.k8s.io/custom-metrics-apiserver v1.27.0 first to see whether the issue is related to custom-metrics-apiserver or not. |
I have a bump of prometheus adapter to 1.29.4 locally on which I ran e2e tests and it worked fine. Is the stackdriver-adapter importing prometheus-adapter ? |
E2E test passed in prometheus-adapter kubernetes-sigs/prometheus-adapter#655 after upgrading custom-metrics-apiserver to latest.
No, stackdriver-adapter depends on custom-metrics-apiserver. This error |
Time to suggest KEDA as replacement for those adapters? 😉 EDIT: It has worked like a charm and we are already using it |
KEDA is an awesome project. I find KEDA provides more functionalities than an adapter. Does KEDA support deploying an adapter only? @JorTurFer |
I was kidding when I suggested KEDA 🤣
Do you mean just as the metrics proxy without ScaledObjects and other stuff? No sorry, currently KEDA only supports deploying operator + metrics server, and the scaling configuration has to be provided via CRD (ScaledObject). Our problem is that the current HPA capabilities are quite limited, despite it's on track with things like scaling to zero supports, currently it's behind a feature gate, so actually it is not supported for almost all the users. |
But you can just ping me by slack if you want and I can answer all your questions (or at least I'll do my best answering them xD). I'm |
Disable priority and fairness by default because the metric APIs are not meant to be interacted with directly but rather by going through the kube-apiserver where the P&F config should reside. In the eventually that some users ever need to enable P&F at the metric server level, they will still be able to do it via the
--enable-priority-and-fairness
flag.