You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/zh-cn/docs/concepts/security/pod-security-admission.md
+21-24Lines changed: 21 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,29 +56,27 @@ PodSecurityPolicy API 已经被废弃,会在 Kubernetes v1.25 发行版中
56
56
57
57
<!-- body -->
58
58
59
-
<!--
60
59
## {{% heading "prerequisites" %}}
61
60
61
+
<!--
62
62
To use this mechanism, your cluster must enforce Pod Security admission.
63
-
64
-
### Built-in Pod Security admission enforcement
65
63
-->
66
-
## {{% heading "prerequisites" %}}
67
-
68
64
要使用此机制,你的集群必须强制执行 Pod 安全准入。
69
65
70
-
### 内置 Pod 安全准入强制执行
71
-
72
66
<!--
73
-
In Kubernetes v{{< skew currentVersion >}}, the `PodSecurity` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
74
-
is a beta feature and is enabled by default. You must have this feature gate enabled.
67
+
### Built-in Pod Security admission enforcement
68
+
69
+
In Kubernetes v1.23, the `PodSecurity` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) is a beta feature and is enabled by default.
70
+
This page is part of the documentation for Kubernetes v{{< skew currentVersion >}}.
75
71
If you are running a different version of Kubernetes, consult the documentation for that release.
**enforce** | Policy violations will cause the pod to be rejected.
165
163
**audit** | Policy violations will trigger the addition of an audit annotation to the event recorded in the [audit log](/docs/tasks/debug/debug-cluster/audit/), but are otherwise allowed.
166
164
**warn** | Policy violations will trigger a user-facing warning, but are otherwise allowed.
Check out [Enforce Pod Security Standards with Namespace Labels](/docs/tasks/configure-pod-container/enforce-standards-namespace-labels) to see example usage.
217
214
-->
218
-
关于用法示例,可参阅
219
-
[使用名字空间标签来强制实施 Pod 安全标准](/zh-cn/docs/tasks/configure-pod-container/enforce-standards-namespace-labels/)。
215
+
关于用法示例,可参阅[使用名字空间标签来强制实施 Pod 安全标准](/zh-cn/docs/tasks/configure-pod-container/enforce-standards-namespace-labels/)。
220
216
221
217
<!--
222
218
## Workload resources and Pod templates
@@ -232,9 +228,10 @@ applied to workload resources, only to the resulting pod objects.
232
228
## 负载资源和 Pod 模板 {#workload-resources-and-pod-templates}
233
229
234
230
Pod 通常是通过创建 {{< glossary_tooltip term_id="deployment" >}} 或
0 commit comments