From 6411e359d02db5f9da46b9f9eac65cbe82a4d80d Mon Sep 17 00:00:00 2001 From: windsonsea Date: Wed, 21 Sep 2022 21:08:49 +0800 Subject: [PATCH] [zh]Sync /tutorials/security/cluster-level-pss.md --- .../tutorials/security/cluster-level-pss.md | 27 +++++++++++++------ ...ith-cluster-level-baseline-pod-security.sh | 2 +- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/content/zh-cn/docs/tutorials/security/cluster-level-pss.md b/content/zh-cn/docs/tutorials/security/cluster-level-pss.md index a9d83780c6f..afbb8459ff6 100644 --- a/content/zh-cn/docs/tutorials/security/cluster-level-pss.md +++ b/content/zh-cn/docs/tutorials/security/cluster-level-pss.md @@ -24,23 +24,24 @@ created. This tutorial shows you how to enforce the `baseline` Pod Security Standard at the cluster level which applies a standard configuration to all namespaces in a cluster. -To apply Pod Security Standards to specific namespaces, refer to [Apply Pod Security Standards at the namespace level](/docs/tutorials/security/ns-level-pss). +To apply Pod Security Standards to specific namespaces, refer to +[Apply Pod Security Standards at the namespace level](/docs/tutorials/security/ns-level-pss). If you are running a version of Kubernetes other than v{{< skew currentVersion >}}, check the documentation for that version. --> Pod 安全准入(PSA)在 v1.23 及更高版本默认启用, -因为它[升级到测试版(beta)](/blog/2021/12/09/pod-security-admission-beta/)。 +因为它已[进阶为 Beta](/blog/2021/12/09/pod-security-admission-beta/)。 Pod 安全准入是在创建 Pod 时应用 [Pod 安全标准](/zh-cn/docs/concepts/security/pod-security-standards/)的准入控制器。 本教程将向你展示如何在集群级别实施 `baseline` Pod 安全标准, -该标准将标准配置应用于集群中的所有名称空间。 +该标准将标准配置应用于集群中的所有名字空间。 要将 Pod 安全标准应用于特定名字空间, 请参阅[在名字空间级别应用 Pod 安全标准](/zh-cn/docs/tutorials/security/ns-level-pss)。 如果你正在运行 v{{< skew currentVersion >}} 以外的 Kubernetes 版本, -检查该版本的文档。 +请查阅该版本的文档。 ## {{% heading "prerequisites" %}} + `pod-security.admission.config.k8s.io/v1` 配置需要 v1.25+。 + 对于 v1.23 和 v1.24,使用 [v1beta1](https://v1-24.docs.kubernetes.io/zh-cn/docs/tasks/configure-pod-container/enforce-standards-admission-controller/)。 + 对于 v1.22,使用 [v1alpha1](https://v1-22.docs.kubernetes.io/docs/tasks/configure-pod-container/enforce-standards-admission-controller/)。 + {{< /note >}}