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/en/docs/concepts/security/pod-security-admission.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -131,4 +131,7 @@ current policy level:
131
131
- [Enforcing Pod Security Standards](/docs/setup/best-practices/enforcing-pod-security-standards)
132
132
- [Enforce Pod Security Standards by Configuring the Built-in Admission Controller](/docs/tasks/configure-pod-container/enforce-standards-admission-controller)
133
133
- [Enforce Pod Security Standards with Namespace Labels](/docs/tasks/configure-pod-container/enforce-standards-namespace-labels)
134
-
- [Migrate from PodSecurityPolicy to the Built-In PodSecurity Admission Controller](/docs/tasks/configure-pod-container/migrate-from-psp)
134
+
135
+
If you are running an older version of Kubernetes and want to upgrade
136
+
to a version of Kubernetes that does not include PodSecurityPolicies,
137
+
read [migrate from PodSecurityPolicy to the Built-In PodSecurity Admission Controller](/docs/tasks/configure-pod-container/migrate-from-psp).
Copy file name to clipboardExpand all lines: content/en/docs/tasks/configure-pod-container/enforce-standards-admission-controller.md
+16-10
Original file line number
Diff line number
Diff line change
@@ -4,23 +4,34 @@ reviewers:
4
4
- tallclair
5
5
- liggitt
6
6
content_type: task
7
-
min-kubernetes-server-version: v1.22
8
7
---
9
8
10
-
As of v1.22, Kubernetes provides a built-in [admission controller](/docs/reference/access-authn-authz/admission-controllers/#podsecurity)
9
+
Kubernetes provides a built-in [admission controller](/docs/reference/access-authn-authz/admission-controllers/#podsecurity)
11
10
to enforce the [Pod Security Standards](/docs/concepts/security/pod-security-standards).
12
11
You can configure this admission controller to set cluster-wide defaults and [exemptions](/docs/concepts/security/pod-security-admission/#exemptions).
13
12
14
13
## {{% heading "prerequisites" %}}
15
14
16
-
{{% version-check %}}
15
+
Following an alpha release in Kubernetes v1.22,
16
+
Pod Security Admission becaome available by default in Kubernetes v1.23, as
17
+
a beta. From version 1.25 onwards, Pod Security Admission is generally
18
+
available. {{% version-check %}}
17
19
18
-
- Ensure the `PodSecurity`[feature gate](/docs/reference/command-line-tools-reference/feature-gates/#feature-gates-for-alpha-or-beta-features) is enabled.
20
+
If you are not running Kubernetes {{< skew currentVersion >}}, you can switch
21
+
to viewing this page in the documentation for the Kubernetes version that you
For v1.23 and v1.24, use [v1beta1](https://v1-24.docs.kubernetes.io/docs/tasks/configure-pod-container/enforce-standards-admission-controller/).
29
+
For v1.22, use [v1alpha1](https://v1-22.docs.kubernetes.io/docs/tasks/configure-pod-container/enforce-standards-admission-controller/).
30
+
{{< /note >}}
31
+
32
+
22
33
```yaml
23
-
apiVersion: apiserver.config.k8s.io/v1
34
+
apiVersion: apiserver.config.k8s.io/v1# see compatibility note
24
35
kind: AdmissionConfiguration
25
36
plugins:
26
37
- name: PodSecurity
@@ -56,8 +67,3 @@ plugins:
56
67
The above manifest needs to be specified via the `--admission-control-config-file` to kube-apiserver.
For v1.23 and v1.24, use [v1beta1](https://v1-24.docs.kubernetes.io/docs/tasks/configure-pod-container/enforce-standards-admission-controller/).
62
-
For v1.22, use [v1alpha1](https://v1-22.docs.kubernetes.io/docs/tasks/configure-pod-container/enforce-standards-admission-controller/).
Pod Security Admission was available by default in Kubernetes v1.23, as
18
+
a beta. From version 1.25 onwards, Pod Security Admission is generally
19
+
available.
19
20
20
-
- Ensure the `PodSecurity`[feature gate](/docs/reference/command-line-tools-reference/feature-gates/#feature-gates-for-alpha-or-beta-features) is enabled.
21
+
{{% version-check %}}
21
22
22
23
## Requiring the `baseline` Pod Security Standard with namespace labels
0 commit comments