aws / eks-anywhere

Run Amazon EKS on your own infrastructure 🚀
https://anywhere.eks.amazonaws.com
Apache License 2.0
1.96k stars 283 forks source link

Deleting eks anywhere cluster failure with getting total count of nodes #4820

Open kirby-atlas opened 1 year ago

kirby-atlas commented 1 year ago

What happened: Attempting to delete an eks anywhere clustering using the following command eksctl anywhere delete cluster mgmt-dev --bundles-override bundle-release.yaml results in a failure.

Error: failed to delete cluster: getting the total count of nodes: getting KubeadmControlPlane for cluster mgmt-dev: getting kubeadmcontrolplane: Error from server (NotFound): kubeadmcontrolplanes.controlplane.cluster.x-k8s.io "mgmt-dev" not found

What you expected to happen: I expect to have the eks cluster deleted.

How to reproduce it (as minimally and precisely as possible): Not sure how I got to this state.

Anything else we need to know?: The cluster was originally created using the following command per airgap documentation, eksctl anywhere create cluster -f eksa-mgmt-cluster.yaml --bundles-override bundle-release.yaml Environment:

TerryHowe commented 1 year ago

Was your kubeconfig context pointing to your management cluster?

Maybe run k get kubeadmcontrolplanes.controlplane.cluster.x-k8s.io -n eksa-system

miryalasaigoutham commented 1 year ago

Is there any update on this?? We are still blocked with the same error