Skip to content
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

[EKS]: How to upgrade worker nodes created by eksctl? #72

Closed
mrichman opened this issue Dec 18, 2018 · 3 comments
Closed

[EKS]: How to upgrade worker nodes created by eksctl? #72

mrichman opened this issue Dec 18, 2018 · 3 comments
Labels
EKS Amazon Elastic Kubernetes Service Proposed Community submitted issue Shipped This feature request was delivered.

Comments

@mrichman
Copy link

What's the procedure for updating existing worker nodes created by eksctl? The AWS docs want us to update the existing stack with this template: https://amazon-eks.s3-us-west-2.amazonaws.com/cloudformation/2018-12-10/amazon-eks-nodegroup.yaml.

This is obviously not the same template that eksctl uses.

Should this be done using eksctl somehow, or should we be updating the CloudFormation stack that eksctl creates?

Assume I've already upgraded my cluster (i.e. from 1.10 to 1.11) and I've replaced kube-dns with CoreDNS.

@mrichman mrichman added the Proposed Community submitted issue label Dec 18, 2018
@mogren mogren added the EKS Amazon Elastic Kubernetes Service label Jan 11, 2019
@whereisaaron
Copy link

@mrichman the current approach with eksctl is to create a new updated node group, e.g. with a newer AMI for a new version of k8s or different options, then drain and delete the old node group.

There is discussion of adding a --replaces option to create nodegroup so this can be a one-step process.
eksctl-io/eksctl#443

So the eksctl process is more like the 'Migrating to a New Worker Node Group' AWS documentation. But easier... 😄
https://docs.aws.amazon.com/eks/latest/userguide/migrate-stack.html

@astleychen
Copy link

Can someone advise how to migrate an on-demand node group to spot-instanced node group over eksctl? From doc here, it seems not able to modify the CFn directly to make the change.

@tabern
Copy link
Contributor

tabern commented Nov 15, 2020

By design - standard eksctl node groups are immutable. See https://eksctl.io/usage/managing-nodegroups/#nodegroup-immutability

However, if you create EKS Managed Node Groups using eksctl these can be upgraded.

Create an eksctl MNG eksctl create nodegroup --managed or eksctl create cluster --managed
Upgrade an eksctl MNG eksctl upgrade nodegroup --name=<mng name> --cluster=<cluster>

@tabern tabern closed this as completed Nov 15, 2020
@tabern tabern added the Shipped This feature request was delivered. label Nov 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EKS Amazon Elastic Kubernetes Service Proposed Community submitted issue Shipped This feature request was delivered.
Projects
None yet
Development

No branches or pull requests

5 participants