Skip to content

I want to recover Deleted EKS cluster back

-1

I accidently deleted my eks cluster from us-east-1, Previous eks cluster has self managed node group, So that my data is persistent. Is there any way to recover the control plane and setup the eks cluster without loosing any data and configuration

1 Answer
0

Unfortunately, once an EKS cluster is deleted, the control plane cannot be recovered. When you delete an EKS cluster using either the AWS CLI's delete-cluster command or eksctl delete cluster, the control plane is permanently removed.

However, since you mentioned you had self-managed node groups with persistent data, there might be a way to preserve your data while creating a new cluster:

  1. If your EC2 instances from the self-managed node group are still running (since they're not automatically terminated when deleting just the EKS control plane), you may be able to preserve the data on those instances.

  2. You'll need to create a new EKS cluster with the same configuration as your previous one:

  • Use the same VPC and subnet configuration
  • Create it with the same Kubernetes version
  • Configure the same IAM roles and permissions
  1. After creating the new cluster, you'll need to create a new self-managed node group:
  • Use the eksctl create nodegroup command with the --managed=false flag
  • Ensure the bootstrap script in the UserData contains the correct new EKS cluster name
  1. If your data is stored on persistent volumes like EFS, you may be able to reconnect those volumes to your new cluster.

The key challenge will be reconfiguring all the Kubernetes resources (deployments, services, etc.) that were in your original cluster, as those configurations are lost when the control plane is deleted. If you have your Kubernetes manifests or Helm charts backed up, you can use those to redeploy your applications.

For future reference, it's recommended to:

answered 10 months ago
AWS
SUPPORT ENGINEER
reviewed 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.