Note that AdmissionConfiguration is a static configuration to the apiserver.

We cannot use `kubectl apply` to apply it to the cluster.

Doing that gives the following error:

        no matches for kind "AdmissionConfiguration" in version "apiserver.config.k8s.io/v1"
This commit is contained in:
Rohit Agarwal 2023-01-16 17:02:13 -08:00 committed by GitHub
parent c3cd5cf472
commit a3466ca3da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,9 @@ plugins:
# Array of namespaces to exempt.
namespaces: []
```
{{< note >}}
The above manifest needs to be specified via the `--admission-control-config-file` to kube-apiserver.
{{< /note >}}
{{< note >}}
`pod-security.admission.config.k8s.io/v1` configuration requires v1.25+.