Eks addon management mess

I recently discovered that the addons for our various eks clusters aren’t consistently managed. Some are manually created daemosets. Some are managed by terraform. I think some may have been added automatically by eks when the cluster was created, and some were added using the console.

At first I was like, I want eks to manage these and auto upgrade versions and such so I don’t have to. But given how an upgrade gone wrong can crash the cluster, maybe not.

What do you all think the best practice is here? I am leaning toward managing them all in terraform. But I don’t see a way to move to that without downtime between deleting and applying.


Related discussions:

Manage them all using terraform. Declare the addons on terraform and use terraform import. No downtime necessary since resources are not being recreated

If I use the aws_eks_addon resource, I won’t be able to import the manually applied daemonsets I assume, since eks knows nothing about them.

You might have to add a taint to newer nodes which is not tolerated by the older daemonset and vice versa. That way you can introduce the new eks addon, which will only spin up it’s pods on the new nodes. Then, you cycle out all the older nodes and delete the old manually created daemonset. This should not incur downtime.

Sweet, I didn’t think of that. I guess in my head, these were some kind of blackbox. But they are really just a daemonset at the end of it all.

Manage eks core add on and other aws ones using eks api (managed addons) they can be created using eks api with terraform too. But other ones either helm or k8s terraform

Also EKS will not upgrade the add-ons for you, and for some they must be upgraded to every patch level in succession.

EKS Auto Mode will automatically manage the most common addons for you.

I saw that, but it manages way way more than just the addons. And the consensus so far seems to be not to have aws managing versions. Do you use auto mode?