EKS - Why is coredns an addon ?

Hi Guys,

I hadn’t used EKS for a while and getting back. I see now that there is an option to add coredns, kubeproxy, and a CNI ( not sure which one ) as additional addons ?

I can see that my cluster already has both kubeproxy and coredns, so why is there still an option to add these as ‘addons’ and what is the purpose of that ?

Also, when I log into the aws console, why am can I not see the control plane nodes ?

So “addons” are a more managed way of handling the deployments of coredns, kubeproxy, and the aws-node cni. The best way to think of it is a more natively managed, packaged version of the previous k8s manifests. For old k8s clusters, you have to migrate from the old style k8s manifests to the addons, so that’s why they are still an option even though you see them as installed.

On the control plane nodes for EKS specifically, you’ll never see those as they are AWS managed off in the EKS service account. You will only ever see the node groups in your own account.

The setup as add-ons lets you manage their versions somewhat independently of the cluster Kubernetes version.

control plane nodes

The control plane nodes are the managed part of the service, so they’re hidden the same way the server parts of SQS or Lambda are hidden from view. The EKS Under the Hood presentation from re:Invent 2019 touches on it:

I’m still not 100% clear, does this mean adding them as addons is the preferred way so we can update them independent of k8s ?

The short gist is that at the end of the day it’s identical. It’s just available as an AWS native UI, api, or cli command. You still have to update them for patch versions or k8s upgrades. It is a little easier given that the addon versions and updates are able to be scripted using the CLI or boto3, so that’s been helpful.

Its meant to be like an easy way to install some packages basically. It has some drawbacks though - notably if you try to patch the addon resources (like, run more coredns pods or use custom dns settings) it can have bad effects when you try to later run an upgrade on the addon.

This is already on the GitHub, but just reiterating that the ability to patch add-ons (especially CoreDNS) with things like tolerations is +++ requested.

What kind of bad effects, specifically?

We had an upgrade just fail to finish, was stuck for over a day and shit was broken. I forget what we’d messed with at the time, but it was a test cluster and we just wiped it out and rebuilt (terraform and argocd so it was like a half hour restore). The lesson there was you probably need to avoid touching the managed AWS addons. On the other hand, some of them are stupidly easy to just install yourself (like coredns) so you may as well just do that and skip the addon and the potential annoyances.