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

[Bug] "Error: unknown flag: --drain-nodegroup" when trying to migrate to EKS Auto Mode #8068

Open
thurahtetaung opened this issue Dec 2, 2024 · 3 comments
Labels

Comments

@thurahtetaung
Copy link

What were you trying to accomplish?

To migrate managed node groups to EKS Auto Mode

What happened?

Running eksctl update auto-mode-config --drain-nodegroup command fails with the following error:

Error: unknown flag: --drain-nodegroup

How to reproduce it?

Follow this guide after enabling auto-mode in aws console

Logs

Error: unknown flag: --drain-nodegroup

Versions

$ eksctl info: 

eksctl version: 0.196.0
kubectl version: v1.30.2
OS: linux
Copy link
Contributor

github-actions bot commented Dec 2, 2024

Hello thurahtetaung 👋 Thank you for opening an issue in eksctl project. The team will review the issue and aim to respond within 1-5 business days. Meanwhile, please read about the Contribution and Code of Conduct guidelines here. You can find out more information about eksctl on our website

@jatin-mehrotra-colorkrew

The documentation is wrong https://docs.aws.amazon.com/eks/latest/userguide/auto-migrate-mng.html

As per command line help

The command is eksctl update auto-mode-config --drain-all-nodegroups ..... However it wont still work because it needs cluster-config file and this does not make sense for cluster which are create during console or terraform to produce cluster-config file.

Even if I generate cluster-config file by hit and trial I only see this message

2024-12-03 01:38:59 [ℹ] Auto Mode is already enabled and up-to-date

I have mentioned this bug in my blog too https://dev.to/aws-builders/run-kubernetes-like-a-pro-without-the-expertise-introducing-eks-auto-mode-5edf

@cPu1
Copy link
Contributor

cPu1 commented Dec 3, 2024

The flag to drain nodegroups after updating a cluster to use Auto Mode is --drain-all-nodegroups. We'll update the documentation.

Even if I generate cluster-config file by hit and trial I only see this message

--drain-all-nodegroups is only valid when the cluster does not already have Auto Mode enabled. To drain your existing nodegroups, use eksctl drain nodegroup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants