-
Notifications
You must be signed in to change notification settings - Fork 981
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
bottlerocket with mulitple cluster-dns #4836
Comments
This one is a little painful since our support for Bottlerocket merging is driven by our own struct, meaning that if we were to just do something simple like change this I haven't dug in enough to understand exactly how to achieve this through a TOML parse, since I doubt that the default toml library in go supports this functionality. |
I'm also going to change this to a feature request since we have had support for the ClusterDNSIP feature with Bottlerocket, but it looks like they added the support for this to be a string or an array in this PR. |
Looks like this can be closed out as part of Bottlerocket v1.8.0. bottlerocket-os/bottlerocket#2132 (comment) Can you confirm @mzupan @z0rc if this works on this version? |
@njtran incorrect. Bottlerocket 1.8.0 introduced support of setting cluster-dns as array. Kaprenter doesn't support this, previous comment still stands. OP mentions setting cluster-dns-ip via user data, which is another case and isn't supported, see #5584 (comment). |
Just wanted to add that we would really need this feature. We deal with Conntrack issues, so node-local DNS would be a easy fix, but without being able to pass 2 IP's we would be creating a new problem where anytime that local cache pod went down, the host would lose DNS access. |
this also fails under karpenter for the nodepool CR
It just has the first IP in dns |
Hi there, just want to follow up here as I just stumbled over the same problem. (As you already have mention) I can see that there is already can't we "just" change ClusterDNSIP here
string[] as well and assign the full array here
I haven't seen where the merging you have mentioned is happening, maybe you could give me a hint @jonathan-innis I'm happy to take a look and create a PR to adress this. |
Description
Observed Behavior:
Not able to set mulitple ips for cluster-dns-ip
bottlerocket allows you to set it via
Trying to set it like
Gives the following log
Looking at the code it takes a string but even if you do it with a comma it always just has one which is the default kube-dns
https://github.com/aws/karpenter/blob/main/pkg/providers/amifamily/bootstrap/bottlerocket.go#L59
Expected Behavior:
be able to have a /etc/resolv.conf in pods like
node-local helps to stop against loading a lot of coredns servers so we aren't rate limited by the vpc resolver.
Reproduction Steps (Please include YAML):
Tried both of the following
and
Versions:
kubectl version
):The text was updated successfully, but these errors were encountered: