Azure / karpenter-provider-azure

AKS Karpenter Provider
Apache License 2.0
394 stars 65 forks source link

Support custom DNS service #561

Closed tangyouzzz closed 2 weeks ago

tangyouzzz commented 2 weeks ago

Tell us about your request

CSE does not seem to support custom DNS services. I noticed that clusterDNS in nodeclass has also been removed. I want to know if there is a solution to this

https://learn.microsoft.com/en-us/azure/aks/custom-node-configuration%20?tabs=linux-node-pools#linux-kubelet-custom-configuration

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?

The DNS of the pod on the new node is using the default DNS on the node, which will cause the pod to be unable to resolve SVC

Are you currently working around this issue?

I am currently using aksscriptless on the latest branch and added '-- cluster dns' to kubelet during aksbootstrap. I personally think that since we have separated bootstrappingclient and aksscriptless, should aksscripeless also support more complete custom kubelets?

Additional Context

No response

Attachments

No response

Community Note

tallaxes commented 2 weeks ago

Duplicate of https://github.com/Azure/karpenter-provider-azure/issues/335

Custom DNS will be natively supported in NAP (bootstrappingclient), with possible support in self-hosted (aksscriptless) later.