-
|
I am trying to add a managed node group to an existing IPv6 eks cluster that is only bottlerocket based nodes. We were able to add the aws linux nodes but had to supply an extra bootstrap arg of |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
Hi @2tim, Bottlerocket determines the If you would like to set the Then you should set the cluster-dns-ip to |
Beta Was this translation helpful? Give feedback.
-
|
I am using the terraform managed node group module. I don’t think it is
setting the cluster-dns-ip. Does this have to be set in the config for the
instance?
…On Fri, Sep 8, 2023 at 4:26 PM Erikson Tung ***@***.***> wrote:
Hi @2tim <https://github.com/2tim>,
Bottlerocket determines the kubelet node IP based on the IP family of the
settings.kubernetes.cluster-dns-ip setting. Normally EKS MNG would
bootstrap this value for you in the EC2 instance user-data. Is that not
what you're seeing?
If you would like to set the cluster-dns-ip value manually, you can
derive it based off of the service IPv6 CIDR by replacing the last hextet
with a. E.g. If your cluster has a service IPv6 CIDR of
"kubernetesNetworkConfig": {
"serviceIpv6Cidr": "fd3c:540b:7a80::/108",
"ipFamily": "ipv6"
},
Then you should set the cluster-dns-ip to fd3c:540b:7a80::a. This should
already be done automatically for you by EKS MNG in the EC2 launch
template. Can you please check if that's the case?
—
Reply to this email directly, view it on GitHub
<#3435 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHPPPSNEKNZ6E6PMAGTK6DXZOEQNANCNFSM6AAAAAA4Q46LTE>
.
You are receiving this because you were mentioned.Message ID:
<bottlerocket-os/bottlerocket/repo-discussions/3435/comments/6952422@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
|
This is an old one, but I just wanted let folks know that bottlerocket-os/bottlerocket-core-kit#734 improved how the cluster DNS is generated when it hasn't been explicitly set. You'll see the improved behavior starting from Bottlerocket v1.51.0. |
Beta Was this translation helpful? Give feedback.
Hi @2tim,
Bottlerocket determines the
kubeletnode IP based on the IP family of thesettings.kubernetes.cluster-dns-ipsetting. Normally EKS MNG would bootstrap this value for you in the EC2 instance user-data. Is that not what you're seeing?If you would like to set the
cluster-dns-ipvalue manually, you can derive it based off of the service IPv6 CIDR by replacing the last hextet witha. E.g. If your cluster has a service IPv6 CIDR ofThen you should set the cluster-dns-ip to
fd3c:540b:7a80::a. This should already be done automatically for you by EKS MNG…