EKS Managed Node Groups, the good, the bad and the config

EKS Managed Node Groups, the good, the bad and the config

https://cablespaghetti.dev/2021/03/20/aws-eks-managed-node-groups/

Does rolling updates to AMI images lock up terraform until it’s completed?

I’m not certain to be honest. I’ll try it on a dev cluster and let you know. The documentation doesn’t make it clear.

Yes it does

That sucks. I’ve got some uses where the node pool is going to be 100s of nodes large that’d take forever to roll.

If the tf times out or you cancel it, the roll can keep happening in the background

Any chance you might want to contribute to terraform eks module ? The managed nodes support is way to buggy to be usable at this moment

So far I let TF create the node groups but upgrade them from the console and TF hasn’t really noticed or cared.

Yes I will certainly try if I come across anything. So far it’s been fine with my config.

Interesting. Are you using a custom launch template?

No nothing interesting. Just default node groups with ssh disabled.

Ah ok. I wonder if the bugs and problems upgrading people have had are more with the custom launch templates. It sounds like your experience is pretty positive.

Yeah the one time I had a problem was with a bad PodDisruptionBudget that prevented a node from draining.

Ah yes I need to watch that, I have a couple of things like that and people often launch non-deployment/statefulset managed pods for debugging and forget to clean them up.

I’ve dropped terraform for EKS management in favour of eksctl. Life is much better now.

Yes, but credential timeouts could result in a failure to write the state file, leaving a mess behind.

You can set custom time-outs. Usually on the credentials side and for sure on the Terraform resource side.

cablespaghetti.dev/2021/0…

Not when the upper ceiling is maxed at 1hr… :frowning:

This is great! I use Terraform for basically all AWS infra provisioning, but as I’m looking into utilizing managed node groups. It seems it makes more sense to use eksctl for EKS specific management.

This is one example: https://github.com/terraform-aws-modules/terraform-aws-eks/pull/1189