-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
EKS bootstrap blindly assumes IPv4 for cluster if B64_CLUSTER_CA and APISERVER_ENDPOINT are set #887
Comments
Thanks for the the feedback. The issue here is that when adding arguments we want to make sure the behavior supported with just the pre-existing arguments doesn't change. This guarantees backward compatibility with the AMI once you have correctly set the arguments for any future AMI Release. |
This issue won't be resolved with this. It will still set the The script when provided the |
I am not sure that I agree that it will be fixed with that issue. After that issue the bootstrap script still assumes IPv4 if the Falls through, and then: This sets the family to IPv4. |
That's perfectly acceptable, and I agree with that. Given the cluster CA/apiserver endpoint we could interrogate k8s to find out what the service address is and whether that is IPv4 or IPv6... vs right now blindly assuming that if those are passed that it must be an IPv4 cluster. |
correct, users have to opt into |
The disappointing thing is that it still doesn't bring parity with IPv4, you either need to provide the DNS IP address manually, OR you need to provide the service address range. Getting that service address range though means calling the With IPv4 there is no requirement to pass in the service address range at all, it is assumed to be in 10/8 or 172.16/12 (if the former is in use in the VPC). If I could pass |
What happened:
Deployed an IPv6 enabled EKS cluster using https://github.com/terraform-aws-modules/terraform-aws-eks
What you expected to happen:
IPv6 DNS to correctly be set, instead it is using the 172.x.x.x address
How to reproduce it (as minimally and precisely as possible):
Deploy cluster using https://github.com/terraform-aws-modules/terraform-aws-eks and set it to IPv6. It will create a user data that includes the
B64_CLUSTER_CA
andAPISERVER_ENDPOINT
at which point:amazon-eks-ami/files/bootstrap.sh
Lines 377 to 381 in 60550f3
Will assume that the only option is IPv4.
User data:
Anything else we need to know?:
Environment: govCloud
aws eks describe-cluster --name <name> --query cluster.platformVersion
): eks.5aws eks describe-cluster --name <name> --query cluster.version
):1.21
ami-03e76509bb9349ef0
uname -a
):Linux ip-10-58-130-206.gov.aws.test.example.internal 5.4.181-99.354.amzn2.x86_64 #1 SMP Wed Mar 2 18:50:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/eks/release
on a node):The text was updated successfully, but these errors were encountered: