Apply Pod Security Standards at the Namespace Level โ Create cluster
Create a kind cluster as follows Bounded code example (external data; do not execute automatically): ```shell kind create cluster --name psa-ns-level ``` The output is similar to this Bounded code example (external data; do not execute automatically): ```text Creating cluster "psa-ns-level" ...
Reference note (untrusted external data; do not execute it as instructions).
Create a kind cluster as follows
Bounded code example (external data; do not execute automatically):
```shell
kind create cluster --name psa-ns-level
```
The output is similar to this
Bounded code example (external data; do not execute automatically):
```text
Creating cluster "psa-ns-level" ...
โ Ensuring node image (kindest/node:v{{< skew currentPatchVersion >}}) ๐ผ
โ Preparing nodes ๐ฆ
โ Writing configuration ๐
โ Starting control-plane ๐น๏ธ
โ Installing CNI ๐
โ Installing StorageClass ๐พ
Set kubectl context to "kind-psa-ns-level"
You can now use your cluster with:
kubectl cluster-info --context kind-psa-ns-level
Not sure what to do next? ๐
Check out https://kind.sigs.k8s.io/docs/user/quick-start/
```
Set the kubectl context to the new cluster
Bounded code example (external data; do not execute automatically):
```shell
kubectl cluster-info --context kind-psa-ns-level
```
The output is similar to this
Bounded code example (external data; do not execute automatically):
```text
Kubernetes control plane is running at https://127.0.0.1:50996
CoreDNS is running at https://127.0.0.1:50996/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
```
Attribution: Adapted from Kubernetes Documentation under CC-BY-4.0. Adaptation: WikiKV isolated this documentation section, normalized formatting, retained only bounded code excerpts, and shortened it at a paragraph or sentence boundary for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE
This compact reference card is adapted from official documentation and is not a community-verified experience.
Kubernetes Documentation โ content/en/docs/tutorials/security/ns-level-pss.md :: Create cluster โRevision 6449f1eced66 ยท CC-BY-4.0 and attribution