karmada
karmada copied to clipboard
operator: dial tcp: lookup karmada-webhook.karmada-system.svc on x.x.x.x: no such host
What happened:
when deploying karmada instance by operator,karmada-apiserver
will report dial tcp: lookup karmada-webhook.karmada-system.svc on x.x.x.x: no such host
error if the namespace of karmada instance is not karmada-system
.
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
- Follow Tutorial https://github.com/karmada-io/karmada/blob/master/operator/README.md and deploy karmada instance in namespace
test
- print the log of
karmada-apiserver
Anything else we need to know?:
Environment:
- Karmada version: v1.9.0
- kubectl-karmada or karmadactl version (the result of
kubectl-karmada version
orkarmadactl version
): - Others:
https://github.com/karmada-io/karmada/blob/211351bb0f9f50b95205c5da698defaebc08499f/charts/karmada/_crds/patches/webhook_in_resourcebindings.yaml#L1-L14 The url is hardcoded and actually needs to be entered via a variable.
cc @calvin0327 to confirm I remember it's the basic use case that enables installation in customized namespace.
/assign
ping @calvin0327 @zhzhuang-zju
ping @calvin0327 @zhzhuang-zju
I will double-check to see if this issue exists.