-
Notifications
You must be signed in to change notification settings - Fork 892
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
Support Connection to ResourceInterpretWebhook without DNS Services #2998
Comments
Hi @lxtywypc, thanks for your contribution! Have you started using Karmada? |
Yes, and I'm working for Trip.com now. We met this problem when we tried to build a customized resource-interpreter-webhook. In our opinion, karmada components should work independently without relying other DNS service. |
Can someone remind me which service the
|
Hi @lxtywypc, is the resolved address configured for network mounting in |
It resolves the service decalred in ResourceInterpreterWebhookConfiguration. Karmada-controller-manager would connect to customized resource-interpreter-webhook by the resolved result. Like this:
DefaultServiceResolver could only resolve it to a service URL like |
Do you mean you specify the webhook by a service? like this: clientConfig:
service:
namespace: foo
name: bar And the |
I think so it does. |
OK. Thanks. So, the DefaultServiceResolver resolves a service to a URL with
Seems
|
I'm sorry for replying late. It took a little long to read the code of kube-apiserver.
|
Hi @lxtywypc, For the second point, can I understand it this way: If there is no DNS server in the cluster, the service address in the URL, like https://ross.andromeda.svc:443, cannot be automatically resolved. In this case, the Service configuration mode is recommended. |
Yes, I think it is better. |
/assign @lxtywypc |
What would you like to be added:
In the code of resourceinterpreter, add the logic of building a new serviceLister to initialize a new ClusterIPServiceResolver instead of DefaultServiceResolver.
Why is this needed:
If we deploy karmada with Default dnsPolicy or deploy karmada in physical machine/virtual machine directly, and there is no coreDNS or other DNS services, it would not connect to resource-interpret-webhooks successfully.
The text was updated successfully, but these errors were encountered: