-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Setting failurePolicy to Fail in the admission webhook does not work #5185
Comments
Hello, |
We've installed keda via the downloaded release yaml which we split up in separate files and apply with fluxcd's kustomize controller. |
There are 3 different yaml inside the release:
Which are you using? |
|
I'm reviewing the configuration and it's looks nice in the yamls but I've noticed a weird thing. The logs you sent say that the ValidatingWebhookConfiguration's name is |
As we were looking into the issue we thought the naming might not match at some point and tried to change it but it made no difference. We might have forgotten to set everything back to the default. |
Could you try to set everything to default and post the logs? |
Yes, thanks for your help :) |
Sure, just ping me back when you have more info :) |
We updated all resources to the 2.12.1 release now, overwriting our changes.
We also still see the following errors in the operator log:
|
Is the message transient or you see it permantently in your logs? |
Yes, the error message are popping up regulary (around every 5 min). What do you mena with auto-sync? I'll try to use cert-manager. |
Using cert-manager to create and inject the cert makes no difference :( |
In my experience with ArgoCD, that error is because flux is reconciling the configuration all the time, locking the resource.
What do you mean? it's not possible because if you use cert-manager, you have to disable this mechanism from the operator (helm chart does it automatically). https://keda.sh/docs/2.12/operate/security/#use-your-own-tls-certificates |
After discussing this in the fluxcd slack channel we decided to go without the admission controller: https://cloud-native.slack.com/archives/CLAJ40HV3/p1701698388439549 |
I've posted on the channel too, let's see if there is something that we can do in the future to prevent this 🤞 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed due to inactivity. |
Report
We've installed keda via the downloaded release yaml.
We want to use the admission webhook with "failurePolicy: Fail".
As soon as we change that we see the following issue, when fluxcd tries to apply a namesapce using a scaledobject.
The admisson webhook deployment is running and the svc is reachable via port-forward.
The used certificates use the right names.
How can we further debug this?
I'm not sure if "internal error" is an error of the admission controller or if the admission controller can't be reached.
The admission controller itself does not log any error.
For us it looks like the admission webhook does not work at all but the error is ignored with the default config?
Expected Behavior
The admission webhook works with: failurePolicy: Fail
Actual Behavior
The admission webhook can't be used becauser of an "internal error".
Steps to Reproduce the Problem
Logs from KEDA operator
The only error i found in the operator logs was:
So the name of the webhook seemed not to match.
Changing the name of the validating webhook from keda-admission to keda-admission-webhooks did not help.
Afterwards we saw errors like:
KEDA Version
2.12.0
Kubernetes Version
1.26
Platform
Microsoft Azure
Scaler Details
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: