You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Up! With the same issue.. It seems an overkill to deploy the certificate manager only to allow this.. It seems that there is a script inside the operator that creates a certificate (when the certificate manager is disabled) that is simply not considering the clusterDomain value. I think this is the file, it seems that the function getDNSNames is hardcoding the domains, but I'm no expert in go :(
Beautiful! I ran into this problem when operating KEDA in a cluster with a custom domain. I had to reinstall the Helm chart using the clusterDomain value, and delete the keda/kedaorg-certs secret to force a regeneration of the certs. (I'd get "cert invalid for this domain" type of errors in keda-operator-metrics-apiserver otherwise, even after a fresh uninstall and reinstall -- secret was left behind from prior installation).
All works now! Thanks for pointing me in the right direction :)
Report
Keda doesn't seem to properly support custom cluster domains other than
cluster.local
(e.g. mycompany.local`).The chart has a configuration setting for this, but a Github search learns me that this is hardcoded in the code base in a few places, e.g.:
keda/cmd/adapter/main.go
Line 140 in ee81112
keda/pkg/certificates/certificate_manager.go
Line 106 in ee81112
Using CertManager for certs seems to be a workaround for this, but hardcoding
cluster.local
is simply not valid.Additionally, validate if the cluster domain is actually needed in every place.
Kubernetes does not depend on FQDNs to resolve services and pods to IP addresses as it will inject custom search domains in
/etc/resolv.conf
: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#namespaces-of-servicesExpected Behavior
Setting the
clusterDomain
in the chart leads to correctly auto generated certs.Actual Behavior
Certificate which is only valid for
cluster.local
.Steps to Reproduce the Problem
clusterDomain
.Logs from KEDA operator
KEDA Version
2.11.2
Kubernetes Version
1.25
Platform
Google Cloud
Scaler Details
N/A
Anything else?
No response
The text was updated successfully, but these errors were encountered: