-
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
Opt-Out AWS VPC CNI (And Any Other EKS "Magics") #117
Comments
The AWS CNI is configured on cluster create and is not managed by the nodes. If you wanted to use a different CNI plugin, you could remove the aws-node daemonset before you join your nodes, so it never gets installed:
We only add core components to get a cluster up and running (CNI, kube-proxy, kube-dns/coreDNS), and currently don't support selection of these on cluster create. If you'd like more options in this, can you create a feature request on https://github.com/aws/containers-roadmap? Since this isn't a node-level feature, I'm going to close this issue out. |
@micahhausler This is not entirely true. To remove the AWS VPC CNI plugin, you need to remove the The second part – starting kubelet without |
I actually managed to get this to work with the existing |
We tried this option |
You need to do this and:
We are doing the latter. We taint the nodes that we start with |
@devkid which network plugin do you use instead of AWS CNI and how to setup it in this configuration? |
I'm not exactly sure, I would guess setting |
As far I understand yes. In this case, what is the point to do it? I mean, your cluster is unusable, isn't it? |
We only do this on nodes which will only run pods with |
Got it. Thank you. |
@TigerC10 have you built such image with 00-custom-cni-plugin? I'm about to to the same thing for the same reason you said, but I'd rather prefer not to reinvent the wheel and contribute to an existing project. |
I wasn't sure if this was an appropriate place to make this feature request since this request has to do with the EKS service rather than the AMI. If I am submitting to the incorrect place, please let me know where to submit this feature request instead.
What would you like to be added:
When an EKS cluster is created, the AWS VPC CNI Plugin is automatically installed to the cluster. I would like a flag or an option as a part of the create cluster to opt-out of having that plugin (and any other "magic" additions) automatically installed.
Why is this needed:
In order to install a different CNI plugin (calico, weave, flannel, etc.), the only way to achieve this well is to build a custom AMI with the desired CNI plugin prefixed with a
00
instead of the standard10
so that it circumvents the loading of the AWS VPC CNI plugin. If the AWS VPC CNI plugin is never installed, then we can continue to use the standard AMI more easily.See Also:
aws/amazon-vpc-cni-k8s#214
aws/amazon-vpc-cni-k8s#176
The text was updated successfully, but these errors were encountered: