이 페이지는 아직 한국어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우
언제든지 연락주시기 바랍니다. Id: kubernetes-root-ca-file-not-defined
Platform: Kubernetes
Severity: Medium
Category: Encryption
Learn More Description Containers (including initContainers) that run kube-controller-manager should include the --root-ca-file flag. This flag specifies the path to the root CA certificate used to validate TLS certificates; without it the controller manager may not validate certificates correctly. The rule reports a MissingAttribute when the --root-ca-file flag is not present in the container’s command.
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 : [ "--root-ca-file=/path/to/ca/file.pem" ]
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" , "--root-ca-file=/path/to/ca/file.pem" ]
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" ]
args : []
restartPolicy : OnFailure