-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Latest Ubuntu Cloud Image AMI is packaged with AWS CLI version 1.x which causes /etc/eks/bootstrap.sh to silently misconfigure the cluster DNS when the EKS cluster has a custom Service IP CIDR address #963
Comments
@mw-tlhakhan I think it would be good to report this issue and request the AWS CLI upgrade in the Ubuntu |
@sbocinec, thank you on pointer. I've created the bug report in that space. Link here https://bugs.launchpad.net/cloud-images/+bug/1982107. I would like to request, at minimum, an enhancement to the |
Another workaround is to cpecify |
@lure , by default AWS EKS uses the AWS EKS starting ~ Oct 2021 supported configurable cluster service CIDR. See post here: https://aws.amazon.com/about-aws/whats-new/2020/10/amazon-eks-supports-configurable-kubernetes-service-ip-address-range/. The primary reason for using a different Kubernetes service CIDR is for the following use case:
|
Terraform AWS/EKS module has it `.16 .`in every example. A lot of people just
copy some parts from the examples..For instance, i found this discussion
after I found the reason, so I decided to leave a comment for luckier
persons.
|
We now install 2.x CLI instead of relying on the version available in the package manager. Unfortunately I don't have an update on Ubuntu's AMI, we don't track those issues here. |
@cartermckinnon you install 2.x in the AWS EKS AMI, not the Ubuntu AMI. Just to clarify. |
Correct; my point was the Ubuntu AMI is maintained by Canonical, not EKS. I've relayed this feedback as well. |
What happened:
When an EKS cluster with a custom Kubernetes Service IP CIDR is created with Ubuntu cloud-image worker nodes, the
/etc/eks/bootstrap.sh
script silently misconfigures the--cluster-dns
argument tokubelet
in/var/snap/kubelet-eks/70/args
file.The Ubuntu cloud-image AMI (us-east-1, EKS 1.21) is ami-04c4f2c4799614025. We found this AMI from the official AWS EKS Ubuntu cloud images catalog https://cloud-images.ubuntu.com/docs/aws/eks/.
What you expected to happen:
The
/etc/eks/bootstrap.sh
script to properly configure the--cluster-dns
argument to kubelet and not default to 172.20.0.10.How to reproduce it (as minimally and precisely as possible):
Here is a link to the
/etc/eks/bootstrap.sh
script: https://github.com/awslabs/amazon-eks-ami/blob/master/files/bootstrap.sh#L373.In my test case, I've extracted the command of interest executed by the
bootstrap.sh
script:Failure when using AWS CLI version 1.x.x
Anything else we need to know?:
Environment:
aws eks describe-cluster --name <name> --query cluster.platformVersion
):aws eks describe-cluster --name <name> --query cluster.version
):uname -a
):cat /etc/eks/release
on a node):Workaround:
/var/snap/kubelet-eks/70/args
file by hand.--dns-cluster-ip
to the/etc/eks/bootstrap.sh
script.Best fixes:
bootstrap.sh
script to require AWS CLI version 2.The text was updated successfully, but these errors were encountered: