아래 명령으로 eksctl
로 생성한 노드 그룹을 확인합니다.
$ eksctl get nodegroups --cluster=<cluster name>
022-05-08 19:30:52 [ℹ] eksctl version 0.95.0
2022-05-08 19:30:52 [ℹ] using region ap-northeast-2
CLUSTER NODEGROUP STATUS CREATED MIN SIZE MAX SIZE DESIRED CAPACITY INSTANCE TYPE IMAGE ID ASG NAME TYPE
my-cluster test-nodes ACTIVE 2022-05-08T10:16:33Z 1 4 3 t3.medium AL2_x86_64 eks-test-nodes-50c05195-d5bb-6d80-1602-fbf15e7b12c9 managed
아래 명령을 통해 해당 노드 그룹을 삭제
합니다.
$ eksctl delete nodegroup \
--cluster <cluster name> \
--region <region-code> \
--name <nodegroup name>
2022-05-08 19:41:00 [ℹ] eksctl version 0.95.0
2022-05-08 19:41:00 [ℹ] using region ap-northeast-2
2022-05-08 19:41:01 [ℹ] 1 nodegroup (test-nodes) was included (based on the include/exclude rules)
2022-05-08 19:41:01 [ℹ] will drain 1 nodegroup(s) in cluster "my-cluster"
2022-05-08 19:41:01 [ℹ] starting parallel draining, max in-flight of 1
2022-05-08 19:41:01 [ℹ] cordon node "ip-192-168-21-49.ap-northeast-2.compute.internal"
2022-05-08 19:41:01 [ℹ] cordon node "ip-192-168-55-235.ap-northeast-2.compute.internal"
2022-05-08 19:41:01 [ℹ] cordon node "ip-192-168-74-3.ap-northeast-2.compute.internal"
2022-05-08 19:41:44 [✔] drained all nodes: [ip-192-168-55-235.ap-northeast-2.compute.internal ip-192-168-74-3.ap-northeast-2.compute.internal ip-192-168-21-49.ap-northeast-2.compute.internal]
2022-05-08 19:41:44 [ℹ] will delete 1 nodegroups from cluster "my-cluster"
2022-05-08 19:41:44 [ℹ] 1 task: { 1 task: { delete nodegroup "test-nodes" [async] } }
2022-05-08 19:41:45 [ℹ] will delete stack "eksctl-my-cluster-nodegroup-test-nodes"
2022-05-08 19:41:45 [ℹ] will delete 0 nodegroups from auth ConfigMap in cluster "my-cluster"
2022-05-08 19:41:45 [✔] deleted 1 nodegroup(s) from cluster "my-cluster"
콘솔을 확인 해보면 노드 그룹이 삭제된 것을 확인할 수 있습니다.