멀티 노드 클러스터 : 특정 상태 Pod 삭제


멀티 노드 클러스터 : 특정 상태 Pod 삭제

Pod 확인 kubectl get pods -A NAMESPACE NAME READY STATUS RESTARTS AGE . . . cattle-system rancher-84696c75d9-8jrcl 0/1 Running 0 109s cattle-system rancher-84696c75d9-gzvr9 0/1 Running 0 108s cattle-system rancher-84696c75d9-fp4xt 0/1 Running 0 108s Pod 삭제 클라이언트에서 실행 중(Running)인 cattle-system Pod을 삭제하겠습니다. kubectl get pods -n cattle-system | grep Running | awk '{print $1}' | xargs kubectl delete pods -n cattle-system pod "rancher-84696c75d9-gzvr9" deleted pod "rancher-84696c75d9-fp4xt" deleted pod...


#쿠버네티스 #특정상태파드삭제

원문링크 : 멀티 노드 클러스터 : 특정 상태 Pod 삭제