karmada icon indicating copy to clipboard operation
karmada copied to clipboard

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

Open zhzhuang-zju opened this issue 9 months ago • 5 comments

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 or karmadactl version):
  • Others:

zhzhuang-zju avatar Apr 30 '24 03:04 zhzhuang-zju

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.

zhzhuang-zju avatar Apr 30 '24 03:04 zhzhuang-zju

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

RainbowMango avatar Apr 30 '24 03:04 RainbowMango

/assign

calvin0327 avatar May 22 '24 02:05 calvin0327

ping @calvin0327 @zhzhuang-zju

RainbowMango avatar Aug 28 '24 11:08 RainbowMango

ping @calvin0327 @zhzhuang-zju

I will double-check to see if this issue exists.

zhzhuang-zju avatar Aug 29 '24 01:08 zhzhuang-zju