Terminated pod garbage collector threshold not properly set 이 페이지는 아직 한국어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우
언제든지 연락주시기 바랍니다. Id: kubernetes-terminated-pod-garbage-collector-threshold-not-properly-set
Platform: Kubernetes
Severity: Medium
Category: Availability
Learn More Description For containers running kube-controller-manager, the --terminated-pod-gc-threshold flag must be set to a value between 0 and 12501. The rule checks the command fields in both initContainers and containers and reports when the flag is missing or set to an incorrect value.
Compliant Code Examples apiVersion : v1
kind : Pod
metadata :
name : command-demo
labels :
purpose : demonstrate-command
spec :
containers :
- name : command-demo-container
image : gcr.io/google_containers/kube-controller-manager-amd64:v1.6.0
command : [ "kube-controller-manager" ]
args : [ "--terminated-pod-gc-threshold=10" ]
restartPolicy : OnFailure
apiVersion : v1
kind : Pod
metadata :
name : command-demo
labels :
purpose : demonstrate-command
spec :
containers :
- name : command-demo-container
image : gcr.io/google_containers/kube-controller-manager-amd64:v1.6.0
command : [ "kube-controller-manager" , "--terminated-pod-gc-threshold=10" ]
args : []
restartPolicy : OnFailure
Non-Compliant Code Examples apiVersion : v1
kind : Pod
metadata :
name : command-demo
labels :
purpose : demonstrate-command
spec :
containers :
- name : command-demo-container
image : gcr.io/google_containers/kube-controller-manager-amd64:v1.6.0
command : [ "kube-controller-manager" , "--terminated-pod-gc-threshold=0" ]
args : []
restartPolicy : OnFailure
apiVersion : v1
kind : Pod
metadata :
name : command-demo
labels :
purpose : demonstrate-command
spec :
containers :
- name : command-demo-container
image : gcr.io/google_containers/kube-controller-manager-amd64:v1.6.0
command : [ "kube-controller-manager" ]
args : [ "--terminated-pod-gc-threshold=12501" ]
restartPolicy : OnFailure