Merge pull request #32746 from my-git9/admission-controller
[zh] Update admission-controllers.md
This commit is contained in:
@@ -1208,10 +1208,10 @@ based on the requested security context and the available Pod Security Policies.
|
|||||||
安全策略确定是否可以执行请求。
|
安全策略确定是否可以执行请求。
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
See also [Pod Security Policy documentation](/docs/concepts/policy/pod-security-policy/)
|
See also the [PodSecurityPolicy](/docs/concepts/security/pod-security-policy/) documentation
|
||||||
for more information.
|
for more information.
|
||||||
-->
|
-->
|
||||||
查看 [Pod 安全策略文档](/zh/docs/concepts/policy/pod-security-policy/)
|
查看 [Pod 安全策略文档](/zh/docs/concepts/security/pod-security-policy/)
|
||||||
了解更多细节。
|
了解更多细节。
|
||||||
|
|
||||||
### PodTolerationRestriction {#podtolerationrestriction}
|
### PodTolerationRestriction {#podtolerationrestriction}
|
||||||
@@ -1328,22 +1328,29 @@ Pod 的 `.spec.overhead` 字段和 RuntimeClass 的 `.overhead` 字段均为处
|
|||||||
### SecurityContextDeny {#securitycontextdeny}
|
### SecurityContextDeny {#securitycontextdeny}
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
This admission controller will deny any pod that attempts to set certain escalating
|
This admission controller will deny any Pod that attempts to set certain escalating
|
||||||
[SecurityContext](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#securitycontext-v1-core)
|
[SecurityContext](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#securitycontext-v1-core)
|
||||||
fields, as shown in the
|
fields, as shown in the
|
||||||
[Configure a Security Context for a Pod or Container](/docs/tasks/configure-pod-container/security-context/)
|
[Configure a Security Context for a Pod or Container](/docs/tasks/configure-pod-container/security-context/)
|
||||||
task.
|
task.
|
||||||
This should be enabled if a cluster doesn't utilize
|
If you don't use [Pod Security admission]((/docs/concepts/security/pod-security-admission/),
|
||||||
[pod security policies](/docs/concepts/policy/pod-security-policy/)
|
[PodSecurityPolicies](/docs/concepts/security/pod-security-policy/), nor any external enforcement mechanism,
|
||||||
to restrict the set of values a security context can take.
|
then you could use this admission controller to restrict the set of values a security context can take.
|
||||||
|
|
||||||
|
See [Pod Security Standards](/docs/concepts/security/pod-security-standards/) for more context on restricting
|
||||||
|
pod privileges.
|
||||||
-->
|
-->
|
||||||
该准入控制器将拒绝任何试图设置特定提升
|
该准入控制器将拒绝任何试图设置特定提升
|
||||||
[SecurityContext](/zh/docs/tasks/configure-pod-container/security-context/)
|
[SecurityContext](/zh/docs/tasks/configure-pod-container/security-context/)
|
||||||
字段的 Pod,正如任务
|
字段的 Pod,正如任务
|
||||||
[为 Pod 或 Container 配置安全上下文](/zh/docs/tasks/configure-pod-container/security-context/)
|
[为 Pod 或 Container 配置安全上下文](/zh/docs/tasks/configure-pod-container/security-context/)
|
||||||
中所展示的那样。
|
中所展示的那样。
|
||||||
如果集群没有使用 [Pod 安全策略](/zh/docs/concepts/policy/pod-security-policy/)
|
如果集群没有使用 [Pod 安全性准入](/zh/docs/concepts/security/pod-security-admission/)、
|
||||||
来限制安全上下文所能获取的值集,那么应该启用这个功能。
|
[PodSecurityPolicies](/zh/docs/concepts/security/pod-security-policy/),
|
||||||
|
也没有任何外部执行机制,那么你可以使用此准入控制器来限制安全上下文所能获取的值集。
|
||||||
|
|
||||||
|
有关限制 Pod 权限的更多内容,请参阅
|
||||||
|
[Pod 安全标准](/zh/docs/concepts/security/pod-security-standards/)。
|
||||||
|
|
||||||
### ServiceAccount {#serviceaccount}
|
### ServiceAccount {#serviceaccount}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user