kubectl delete 명령어로 PVC PV가 삭제 되지 않을 때 아래의 명령어로 삭제가 가능하다.
PVC 삭제하기
kubectl patch pvc pvc_name -p '{"metadata":{"finalizers":null}}'
PV 삭제하기
kubectl patch pv pv_name -p '{"metadata":{"finalizers":null}}'
Pod 삭제하기
kubectl patch pod pod_name -p '{"metadata":{"finalizers":null}}'
kubectl delete pod <pod_name> -n <namespace> --grace-period 0 --force
반응형