mumoshu / terraform-provider-eksctl

Manage AWS EKS clusters using Terraform and eksctl
Apache License 2.0
234 stars 44 forks source link

eks cannot be deleted due to 1 pods are unevictable from nod... #71

Open misogihagi opened 7 months ago

misogihagi commented 7 months ago

might be same problem https://github.com/eksctl-io/eksctl/issues/6287

logs:

2023-02-13 14:36:56 [ℹ] deleting EKS cluster "mb" 2023-02-13 14:36:57 [ℹ] will drain 0 unmanaged nodegroup(s) in cluster "mb" 2023-02-13 14:36:57 [ℹ] starting parallel draining, max in-flight of 1 2023-02-13 14:38:12 [!] 1 pods are unevictable from node ip-192-168-29-32.eu-west-1.compute.internal 2023-02-13 14:39:14 [!] 1 pods are unevictable from node ip-192-168-29-32.eu-west-1.compute.internal 2023-02-13 14:40:16 [!] 1 pods are unevictable from node ip-192-168-29-32.eu-west-1.compute.internal 2023-02-13 14:41:18 [!] 1 pods are unevictable from node ip-192-168-29-32.eu-west-1.compute.internal 2023-02-13 14:42:20 [!] 1 pods are unevictable from node ip-192-168-29-32.eu-west-1.compute.internal

config:

resource "eksctl_cluster" "primary" {
  eksctl_bin = "eksctl-0.20.0"
  name = "primary1"
  region = "us-east-2"
  spec = <<-EOS
  nodeGroups:
  - name: ng1
    instanceType: m5.large
  EOS
}

manually, typed

eksctl delete cluster --region us-east-2 --name primary1 --disable-nodegroup-eviction

, succeeded to delete cluster.

--disable-nodegroup-eviction option needs?