pods 삭제하고 싶은데 ㅠㅠ 안지워진다이겁니다ㅠㅠ
pods 지우기
> kubectl delete <pod name>
error: resource(s) were provided, but no name, label selector, or --all flag specified
pods를 replicationcontroller or deployment 상태로 배포를 했기때문에 pods를 삭제해도 안지워지는 것이였다 ㅠㅠ
해당 replicationcontroller 또는 deployment를 먼저 삭제한 다음 pods를 지우면 된당!!!
kubectl get deployments
# deployments 확인하기
> kubectl get deployments
# deployments 삭제하기
> kubectl delete deployment <name>
# pod 삭제하기
> kubectl delete <name>
반응형
'Infra > MLops' 카테고리의 다른 글
[helm]helm 사용하기 _2 (6) | 2022.03.03 |
---|---|
[helm]helm 사용하기 _1 (0) | 2022.03.02 |
[k8s error]System has not been booted with systemd as init system (PID 1). Can't operate.Failed to connect to bus: Host is down (2) | 2022.02.16 |
[k8s]명령어 정리 (2) | 2022.02.15 |
[k8s] token, certificate-key 찾기 (0) | 2022.02.15 |