Node restriction admission control plugin not set 이 페이지는 아직 한국어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우
언제든지 연락주시기 바랍니다. Id: kubernetes-node-restriction-admission-control-plugin-not-set
Platform: Kubernetes
Severity: Medium
Category: Access Control
Learn More Description When a container runs kube-apiserver, the --enable-admission-plugins flag should include NodeRestriction. This rule checks container command lines and reports resources where --enable-admission-plugins does not contain NodeRestriction. The NodeRestriction plugin must also be enabled in the cluster admission control configuration.
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-apiserver-amd64:v1.6.0
command : [ "kube-apiserver" ]
args : [ "--enable-admission-plugins=NodeRestriction" , "--admission-control-config-file=path/to/plugin/config/file.yaml" ]
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-apiserver-amd64:v1.6.0
command : [ "kube-apiserver" , "--enable-admission-plugins=NodeRestriction" , "--admission-control-config-file=path/to/plugin/config/file.yaml" ]
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-apiserver-amd64:v1.6.0
command : [ "kube-apiserver" ]
args : [ "--enable-admission-plugins=AlwaysAdmit" ]
restartPolicy : OnFailure