karmada-io / karmada

Open, Multi-Cloud, Multi-Cluster Kubernetes Orchestration
https://karmada.io
Apache License 2.0
4.14k stars 811 forks source link

operator: dial tcp: lookup karmada-webhook.karmada-system.svc on x.x.x.x: no such host #4893

Open zhzhuang-zju opened 2 weeks ago

zhzhuang-zju commented 2 weeks ago

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):

Anything else we need to know?:

Environment:

zhzhuang-zju commented 2 weeks ago

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.

RainbowMango commented 2 weeks ago

cc @calvin0327 to confirm I remember it's the basic use case that enables installation in customized namespace.