mybeang.log
로그인
mybeang.log
로그인
K8S Error Pod 일괄 삭제하기
Byounghee Chae
·
2024년 12월 2일
팔로우
0
kubenetes
0
tips
목록 보기
5/7
Kubectl 에 접속
아래 cmd 입력
kubectl get pods | grep Error | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod
경우에 따라 "Error" 대신 다른 keyword 로 검색.
주의: awk 까지 입력하여 CLI 확인해보기
명령어 설명
awk:
https://recipes4dev.tistory.com/171
xargs:
https://jjeongil.tistory.com/1574
Byounghee Chae
Python Dev with Infra
팔로우
이전 포스트
Mysql Master-Slave 구성하기
다음 포스트
Sorting
0개의 댓글
댓글 작성