eksctl delete

From wikieduonline
Revision as of 18:15, 10 May 2022 by Welcome (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

eksctl delete

eksctl delete cluster
Error: --name must be set
eksctl delete cluster --help
eksctl delete cluster --name your-eks-cluster-name
(It will take approximately 5 min) 
eksctl delete cluster --name your-eks-cluster-name --region xx-east-2 
2022-05-10 20:12:35 [ℹ]  eksctl version 0.96.0
2022-05-10 20:12:35 [ℹ]  using region us-east-2
2022-05-10 20:12:35 [ℹ]  deleting EKS cluster "your-eks-cluster-name"
2022-05-10 20:12:37 [ℹ]  deleted 0 Fargate profile(s)
2022-05-10 20:12:38 [ℹ]  cleaning up AWS load balancers created by Kubernetes objects of Kind Service or Ingress
Error: cannot list Kubernetes Services: Unauthorized
eksctl delete cluster --name your-eks-cluster-name --region xx-east-2 
2022-05-10 20:14:13 [ℹ]  eksctl version 0.96.0
2022-05-10 20:14:13 [ℹ]  using region us-east-2
Error: unable to describe cluster control plane: AccessDeniedException: User: arn:aws:iam::0987654321:user/YOUR_USER is not authorized to perform: eks:DescribeCluster on resource: arn:aws:eks:us-east-2:0987654321:cluster/your-eks-cluster-name with an explicit deny


eksctl delete cluster --name mytest-eks-aabbccdd
2022-05-10 20:08:52 [ℹ]  eksctl version 0.96.0
2022-05-10 20:08:52 [ℹ]  using region eu-central-1
Error: unable to describe cluster control plane: ResourceNotFoundException: No cluster found for name: mytest-eks-aabbccdd.
{
  RespMetadata: {
    StatusCode: 404,
    RequestID: "da0d5d6f-ae9a-40d7-88bf-6175e651c119"
  },
  Message_: "No cluster found for name: mytest-eks-gqLnwyJm."
}

Output[edit]

eksctl delete cluster --name your-eks-cluster-name
(It will take approximately 5 min) 
2021-11-14 16:02:26 [ℹ]  eksctl version 0.73.0
2021-11-14 16:02:26 [ℹ]  using region us-east-2
2021-11-14 16:02:26 [ℹ]  deleting EKS cluster "your-eks-cluster-name"
2021-11-14 16:02:27 [ℹ]  will drain 0 unmanaged nodegroup(s) in cluster "your-eks-cluster-name"
2021-11-14 16:02:28 [ℹ]  deleted 0 Fargate profile(s)
2021-11-14 16:02:29 [✔]  kubeconfig has been updated
2021-11-14 16:02:29 [ℹ]  cleaning up AWS load balancers created by Kubernetes objects of Kind Service or Ingress
2021-11-14 16:02:32 [ℹ]
2 sequential tasks: { delete nodegroup "ng-7c82e419", delete cluster control plane "your-eks-cluster-name" [async]
}
2021-11-14 16:02:32 [ℹ]  will delete stack "eksctl-your-eks-cluster-name-nodegroup-ng-7c82e419"
2021-11-14 16:02:32 [ℹ]  waiting for stack "eksctl-your-eks-cluster-name-nodegroup-ng-7c82e419" to get deleted
2021-11-14 16:02:32 [ℹ]  waiting for CloudFormation stack "eksctl-your-eks-cluster-name-nodegroup-ng-7c82e419"
2021-11-14 16:02:48 [ℹ]  waiting for CloudFormation stack "eksctl-your-eks-cluster-name-nodegroup-ng-7c82e419"
2021-11-14 16:03:06 [ℹ]  waiting for CloudFormation stack "eksctl-your-eks-cluster-name-nodegroup-ng-7c82e419"
2021-11-14 16:03:26 [ℹ]  waiting for CloudFormation stack "eksctl-your-eks-cluster-name-nodegroup-ng-7c82e419"
2021-11-14 16:03:43 [ℹ]  waiting for CloudFormation stack "eksctl-your-eks-cluster-name-nodegroup-ng-7c82e419"
2021-11-14 16:04:03 [ℹ]  waiting for CloudFormation stack "eksctl-your-eks-cluster-name-nodegroup-ng-7c82e419"
2021-11-14 16:04:23 [ℹ]  waiting for CloudFormation stack "eksctl-your-eks-cluster-name-nodegroup-ng-7c82e419"
2021-11-14 16:04:42 [ℹ]  waiting for CloudFormation stack "eksctl-your-eks-cluster-name-nodegroup-ng-7c82e419"
2021-11-14 16:05:00 [ℹ]  waiting for CloudFormation stack "eksctl-your-eks-cluster-name-nodegroup-ng-7c82e419"
2021-11-14 16:05:18 [ℹ]  waiting for CloudFormation stack "eksctl-your-eks-cluster-name-nodegroup-ng-7c82e419"
2021-11-14 16:05:35 [ℹ]  waiting for CloudFormation stack "eksctl-your-eks-cluster-name-nodegroup-ng-7c82e419"
2021-11-14 16:05:51 [ℹ]  waiting for CloudFormation stack "eksctl-your-eks-cluster-name-nodegroup-ng-7c82e419"
2021-11-14 16:06:10 [ℹ]  waiting for CloudFormation stack "eksctl-your-eks-cluster-name-nodegroup-ng-7c82e419"
2021-11-14 16:06:26 [ℹ]  waiting for CloudFormation stack "eksctl-your-eks-cluster-name-nodegroup-ng-7c82e419"
2021-11-14 16:06:43 [ℹ]  waiting for CloudFormation stack "eksctl-your-eks-cluster-name-nodegroup-ng-7c82e419"
2021-11-14 16:07:01 [ℹ]  waiting for CloudFormation stack "eksctl-your-eks-cluster-name-nodegroup-ng-7c82e419"
2021-11-14 16:07:17 [ℹ]  waiting for CloudFormation stack "eksctl-your-eks-cluster-name-nodegroup-ng-7c82e419"
2021-11-14 16:07:36 [ℹ]  waiting for CloudFormation stack "eksctl-your-eks-cluster-name-nodegroup-ng-7c82e419"
2021-11-14 16:07:37 [ℹ]  will delete stack "eksctl-your-eks-cluster-name-cluster"
2021-11-14 16:07:37 [✔]  all cluster resources were deleted

Related[edit]

See also[edit]

Advertising: