【发布时间】:2021-07-14 05:49:21
【问题描述】:
让我们从一些上下文开始:
我正在学习 CKS 并阅读 CIS_Kubernetes_Benchmark_v1.6.0.pdf 并且有一个令人困惑的部分:
1.2.17 Ensure that the admission control plugin NodeRestriction is set (Automated)
...
Verify that the --enable-admission-plugins argument is set to a value that includes
NodeRestriction.
Remediation:
Follow the Kubernetes documentation and configure NodeRestriction plug-in on kubelets.
Then, edit the API server pod specification file /etc/kubernetes/manifests/kube-
apiserver.yaml on the master node and set the --enable-admission-plugins parameter
to a value that includes NodeRestriction.
关于检查/etc/kubernetes/manifests/kube-apiserver.yaml 是否有一个条目 - --enable-admission-plugins=NodeRestriction,... 的部分是有道理的,烦人的部分是"Follow the Kubernetes documentation and configure NodeRestriction plug-in on kubelets."
谷歌搜索非常困难,Kubernetes 官方文档并不清楚如何做到这一点。
既然上下文已经存在,那么问题是:
在kube-apiserver上设置---enable-admission-plugins=NodeRestriction后,如何验证kubelet上的NodeRestriction插件是否配置正确?
【问题讨论】:
标签: security kubernetes kubelet kube-apiserver hardening