website/content/zh-cn/docs/concepts/security/pod-security-policy.md

2.0 KiB
Raw Blame History

title content_type weight
Pod 安全策略 concept 30

{{% alert title="被移除的特性" color="warning" %}}

PodSecurityPolicy 在 Kubernetes v1.21 中被弃用 在 Kubernetes v1.25 中被移除。 {{% /alert %}}

作为替代,你可以使用下面任一方式执行类似的限制,或者同时使用下面这两种方式。

有关如何迁移, 参阅从 PodSecurityPolicy 迁移到内置的 PodSecurity 准入控制器。 有关移除此 API 的更多信息,参阅 弃用 PodSecurityPolicy过去、现在、未来

如果所运行的 Kubernetes 不是 v{{< skew currentVersion >}} 版本,则需要查看你所使用的 Kubernetes 版本的对应文档。