k8s기반에서 강제로 pod 종료
- 죽지않는 pod 정보1
[root@control1 ~]# kubectl get pod test-68d6bf4d95-zhx55 -n test_user2NAME READY STATUS RESTARTS AGE3test-68d6bf4d95-zhx55 1/4 Terminating 0 68d - 강제로 pod 삭제 1
[root@control1 ~]# kubectl delete pod test-68d6bf4d95-zhx55 -n test_user -grace-period=0 -force2warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely.3pod "test-68d6bf4d95-zhx55" force deleted - pod 정보 없는거 확인1
[root@control1 ~]# kubectl get pod test-68d6bf4d95-zhx55 -n test_user2Error from server (NotFound): pods "test-68d6bf4d95-zhx55" not found
출처 - http://igoni.kr/books/linux/page/k8s-pod
댓글 없음:
댓글 쓰기