eksctl pods are unevictable from node 에러 해결하기

2023. 2. 28. 19:15Dev/EKS

728x90
반응형

aws eks를

eksctl로 구성한 eks를

delete 하던 중

 1 pods are unevictable from node ip-192-168-49-32.ap-northeast-2.compute.internal

에러가 발생해서 클러스터 삭제가 안되는 상황

 

검색해보니 poddisruptionbudget 을 지워주면 된다고 합니다.

https://veducate.co.uk/delete-eks-fails-cannot-evict-pod/

 

Deleting AWS EKS Cluster Fails? Learn How to Fix "Cannot Evict Pod as it Violates Disruption Budget" Error

Learn how to solve the EKS delete cluster error: "Cannot evict pod as it would violate the pod's disruption budget." Find out how to identify and delete Pod Disruption Budgets to successfully delete your cluster.

veducate.co.uk

hodong@LHDONG:~$ k get pdb -A
NAMESPACE     NAME                 MIN AVAILABLE   MAX UNAVAILABLE   ALLOWED DISRUPTIONS   AGE
kube-system   ebs-csi-controller   N/A             1                 0                     4h58m
hodong@LHDONG:~$ k delete pdb ebs-csi-controller -n kube-system
poddisruptionbudget.policy "ebs-csi-controller" deleted
hodong@LHDONG:~$ k get pdb -A
No resources found

ebs-csi-controller가 pdb를 가지고 있어서 삭제가 안되던것

지워주니 eksctl delete 명령어가 잘 돌아가고 클러스터가 삭제되었다.