참고문서
https://kubernetes.io/ko/docs/concepts/workloads/pods/pod-lifecycle/#pod-garbage-collection
파드 라이프사이클
이 페이지에서는 파드의 라이프사이클을 설명한다. 파드는 정의된 라이프사이클을 따른다. Pending 단계에서 시작해서, 기본 컨테이너 중 적어도 하나 이상이 OK로 시작하면 Running 단계를 통과하
kubernetes.io
Pod Garbage Collector
실패한 파드의 경우, API 오브젝트는 사람이나 컨트롤러 프로세스가 명시적으로 파드를 제거할 때까지 클러스터의 API에 남아 있다. 이를 자동으로 해결해주는 것이 Pod Garbage Collector 라고 한다. 아래와 같이 이는 kube-controller-manager pod 에 그 수를 지정할 수 있는 옵션이다. 기본값은 12500 과 같다.
root@k8s-master:~# k exec -it kube-controller-manager-k8s-master -- kube-controller-manager --help | grep -i terminated
--terminated-pod-gc-threshold int32 Number of terminated pods that can exist before the terminated pod garbage collector starts deleting terminated pods. If <= 0, the terminated pod garbage collector is disabled. (default 12500)'k8s' 카테고리의 다른 글
| PV 테스트 (0) | 2025.07.15 |
|---|---|
| Prometheus 와 Grafana 설치 (1) | 2025.07.11 |
| DNAT (2) | 2025.07.10 |
| SNAT (0) | 2025.06.30 |
| yq 설치 및 사용 (0) | 2025.06.10 |