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
The Kubernetes [Pod Security Standards](/docs/concepts/security/pod-security-standards/) define
19
18
different isolation levels for Pods. These standards let you define how you want to restrict the
20
19
behavior of pods in a clear, consistent fashion.
21
20
22
-
As a beta feature, Kubernetes offers a built-in _Pod Security_ {{< glossary_tooltip
23
-
text="admission controller" term_id="admission-controller" >}}, the successor
24
-
to [PodSecurityPolicies](/docs/concepts/security/pod-security-policy/). Pod security restrictions
25
-
are applied at the {{< glossary_tooltip text="namespace" term_id="namespace" >}} level when pods
26
-
are created.
27
-
28
-
{{< note >}}
29
-
The PodSecurityPolicy API is deprecated and will be
30
-
[removed](/docs/reference/using-api/deprecation-guide/#v1-25) from Kubernetes in v1.25.
31
-
{{< /note >}}
32
-
33
-
34
-
## {{% heading "prerequisites" %}}
35
-
36
-
To use this mechanism, your cluster must enforce Pod Security admission.
21
+
Kubernetes offers a built-in _Pod Security_ {{< glossary_tooltip text="admission controller"
22
+
term_id="admission-controller" >}} to enforce the Pod Security Standards. Pod security restrictions
23
+
are applied at the {{< glossary_tooltip text="namespace" term_id="namespace" >}} level when pods are
24
+
created.
37
25
38
26
### Built-in Pod Security admission enforcement
39
27
40
-
From Kubernetes v1.23, the `PodSecurity`[feature gate](/docs/reference/command-line-tools-reference/feature-gates/) is a beta feature and is enabled by default.
41
28
This page is part of the documentation for Kubernetes v{{< skew currentVersion >}}.
42
29
If you are running a different version of Kubernetes, consult the documentation for that release.
43
30
44
-
### Alternative: installing the `PodSecurity` admission webhook {#webhook}
45
-
46
-
The `PodSecurity` admission logic is also available as a [validating admission webhook](https://git.k8s.io/pod-security-admission/webhook). This implementation is also beta.
47
-
For environments where the built-in `PodSecurity` admission plugin cannot be enabled, you can instead enable that logic via a validating admission webhook.
48
-
49
-
A pre-built container image, certificate generation scripts, and example manifests
50
-
are available at [https://git.k8s.io/pod-security-admission/webhook](https://git.k8s.io/pod-security-admission/webhook).
0 commit comments