-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Use eksctl commands (e.g. update core-dns) on non-eksctl created clusters #2174
Comments
Thanks for opening the issue @kalbir. You raise some excellent points around the current user experience when using eksctl against clusters that weren't created with eksctl. I've opened two recent PRs to try and improve the current experience #2779 and #2775. However these PRs only adress Your suggestion around changing it so that the UX seems reasonable to me. To recap the outcome of running a command against a non-eksctl created cluster would be either:
$ eksctl delete cluster --name cluster-created-in-console
[ℹ] eksctl version 0.30.0
[ℹ] Cannot delete cluster that was not created via eksctl (no associated CloudFormation stacks found) It might be that over time we try to remove more occurrences of 2. and make eksctl smarter. For example at the moment it all of its interaction with creating clusters is through CloudFormation, meaning commands like |
Edit: this list is out of date, see #2174 (comment). I'm working my way through the commands to see what needs to change (will update this comment as I go along): Works
Needs adjusting
|
Update list as of 03/02/2021 Works
Needs adjusting
|
Hi @aclevername thanks for you effort. At least in my case, the option 'eksctl upgrade nodegroup' is not working:
`% eksctl upgrade nodegroup --name=NG-test --cluster=testcluster --kubernetes-version 1.18 --launch-template-version 2 goroutine 1 [running]: |
Thanks for reporting the issue! Can you create a new bug report issue with the config file/cluster details? Thanks |
From |
Nice work! Very pleased this has been shipped |
Can't wait to see this ! |
Docs will be out with this weeks release, I'm going to close this issue now as the work is done! 😄 |
Why do you want this feature?
eksctl
has some commands that make it easy to do things on clusters. So regardless of whether you created the cluster witheksctl
or some other method, it could save yout time if you could use one of those commands on your cluster.Examples that come to mind are:
eksctl utils update-coredns
eksctl create iamidentitymapping
eksctl create fargateprofile
eksctl upgrade nodegroup
(eksctl upgrade nodegroup created from console #2698)What feature/behavior/change do you want?
My initial thought is that you could pass some identifier for the cluster to eksctl (e.g. name and region) that will identify a unique cluster.
eksctl
could then look up that cluster and apply the correct command to it. So on the surface of things, eksctl would not change from a user perspective.This would mean that
eksctl get clusters
could also show all the clusters that you have in your account, and indicate whether they were created byeksctl
or not.Then if you tried a command on a non-eksctl cluster that we could not complete, you'd get a message telling you why you couldn't do that (e.g.
delete cluster
).The text was updated successfully, but these errors were encountered: