@@ -1208,10 +1208,10 @@ based on the requested security context and the available Pod Security Policies.
1208
1208
安全策略确定是否可以执行请求。
1209
1209
1210
1210
<!--
1211
- See also [Pod Security Policy documentation ](/docs/concepts/policy /pod-security-policy/)
1211
+ See also the [PodSecurityPolicy ](/docs/concepts/security /pod-security-policy/) documentation
1212
1212
for more information.
1213
1213
-->
1214
- 查看 [Pod 安全策略文档](/zh/docs/concepts/policy /pod-security-policy/)
1214
+ 查看 [Pod 安全策略文档](/zh/docs/concepts/security /pod-security-policy/)
1215
1215
了解更多细节。
1216
1216
1217
1217
# ## PodTolerationRestriction {#podtolerationrestriction}
@@ -1328,22 +1328,29 @@ Pod 的 `.spec.overhead` 字段和 RuntimeClass 的 `.overhead` 字段均为处
1328
1328
# ## SecurityContextDeny {#securitycontextdeny}
1329
1329
1330
1330
<!--
1331
- This admission controller will deny any pod that attempts to set certain escalating
1331
+ This admission controller will deny any Pod that attempts to set certain escalating
1332
1332
[SecurityContext](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#securitycontext-v1-core)
1333
1333
fields, as shown in the
1334
1334
[Configure a Security Context for a Pod or Container](/docs/tasks/configure-pod-container/security-context/)
1335
1335
task.
1336
- This should be enabled if a cluster doesn't utilize
1337
- [pod security policies](/docs/concepts/policy/pod-security-policy/)
1338
- to restrict the set of values a security context can take.
1336
+ If you don't use [Pod Security admission]((/docs/concepts/security/pod-security-admission/),
1337
+ [PodSecurityPolicies](/docs/concepts/security/pod-security-policy/), nor any external enforcement mechanism,
1338
+ then you could use this admission controller to restrict the set of values a security context can take.
1339
+
1340
+ See [Pod Security Standards](/docs/concepts/security/pod-security-standards/) for more context on restricting
1341
+ pod privileges.
1339
1342
-->
1340
1343
该准入控制器将拒绝任何试图设置特定提升
1341
1344
[SecurityContext](/zh/docs/tasks/configure-pod-container/security-context/)
1342
1345
字段的 Pod,正如任务
1343
1346
[为 Pod 或 Container 配置安全上下文](/zh/docs/tasks/configure-pod-container/security-context/)
1344
1347
中所展示的那样。
1345
- 如果集群没有使用 [Pod 安全策略](/zh/docs/concepts/policy/pod-security-policy/)
1346
- 来限制安全上下文所能获取的值集,那么应该启用这个功能。
1348
+ 如果集群没有使用 [Pod 安全性准入](/zh/docs/concepts/security/pod-security-admission/)、
1349
+ [PodSecurityPolicies](/zh/docs/concepts/security/pod-security-policy/),
1350
+ 也没有任何外部执行机制,那么你可以使用此准入控制器来限制安全上下文所能获取的值集。
1351
+
1352
+ 有关限制 Pod 权限的更多内容,请参阅
1353
+ [Pod 安全标准](/zh/docs/concepts/security/pod-security-standards/)。
1347
1354
1348
1355
# ## ServiceAccount {#serviceaccount}
1349
1356
0 commit comments