From d463ee0826f55052727ddafa4a5db321a055c8ce Mon Sep 17 00:00:00 2001 From: Vitthal Sai Date: Mon, 27 Jun 2022 23:18:20 +0530 Subject: [PATCH 1/2] Document pss at cluster level for recent release --- .../en/docs/tutorials/security/cluster-level-pss.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/content/en/docs/tutorials/security/cluster-level-pss.md b/content/en/docs/tutorials/security/cluster-level-pss.md index 4da0502aca..83a6cdc9f5 100644 --- a/content/en/docs/tutorials/security/cluster-level-pss.md +++ b/content/en/docs/tutorials/security/cluster-level-pss.md @@ -19,6 +19,9 @@ to all namespaces in a cluster. To apply Pod Security Standards to specific namespaces, refer to [Apply Pod Security Standards at the namespace level](/docs/tutorials/security/ns-level-pss). +If you are running a version of Kubernetes other than v{{< skew currentVersion >}}, +check the documentation for that version. + ## {{% heading "prerequisites" %}} Install the following on your workstation: @@ -38,12 +41,12 @@ that are most appropriate for your configuration, do the following: 1. Create a cluster with no Pod Security Standards applied: ```shell - kind create cluster --name psa-wo-cluster-pss --image kindest/node:v1.23.0 + kind create cluster --name psa-wo-cluster-pss --image kindest/node:v{{< skew currentVersion >}}.0 ``` The output is similar to this: ``` Creating cluster "psa-wo-cluster-pss" ... - ✓ Ensuring node image (kindest/node:v1.23.0) đŸ–ŧ + ✓ Ensuring node image (kindest/node:v{{< skew currentVersion >}}.0) đŸ–ŧ ✓ Preparing nodes đŸ“Ļ ✓ Writing configuration 📜 ✓ Starting control-plane đŸ•šī¸ @@ -245,12 +248,12 @@ following: these Pod Security Standards: ```shell - kind create cluster --name psa-with-cluster-pss --image kindest/node:v1.23.0 --config /tmp/pss/cluster-config.yaml + kind create cluster --name psa-with-cluster-pss --image kindest/node:v{{< skew currentVersion >}}.0 --config /tmp/pss/cluster-config.yaml ``` The output is similar to this: ``` Creating cluster "psa-with-cluster-pss" ... - ✓ Ensuring node image (kindest/node:v1.23.0) đŸ–ŧ + ✓ Ensuring node image (kindest/node:v{{< skew currentVersion >}}.0) đŸ–ŧ ✓ Preparing nodes đŸ“Ļ ✓ Writing configuration 📜 ✓ Starting control-plane đŸ•šī¸ From 6ca9bb94cc71504cb2ceab8c7dc687c45a2682c4 Mon Sep 17 00:00:00 2001 From: Vitthal Sai Date: Thu, 30 Jun 2022 19:26:56 +0530 Subject: [PATCH 2/2] Manually code image tag --- content/en/docs/tutorials/security/cluster-level-pss.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/en/docs/tutorials/security/cluster-level-pss.md b/content/en/docs/tutorials/security/cluster-level-pss.md index 83a6cdc9f5..24ea338518 100644 --- a/content/en/docs/tutorials/security/cluster-level-pss.md +++ b/content/en/docs/tutorials/security/cluster-level-pss.md @@ -41,12 +41,12 @@ that are most appropriate for your configuration, do the following: 1. Create a cluster with no Pod Security Standards applied: ```shell - kind create cluster --name psa-wo-cluster-pss --image kindest/node:v{{< skew currentVersion >}}.0 + kind create cluster --name psa-wo-cluster-pss --image kindest/node:v1.24.0 ``` The output is similar to this: ``` Creating cluster "psa-wo-cluster-pss" ... - ✓ Ensuring node image (kindest/node:v{{< skew currentVersion >}}.0) đŸ–ŧ + ✓ Ensuring node image (kindest/node:v1.24.0) đŸ–ŧ ✓ Preparing nodes đŸ“Ļ ✓ Writing configuration 📜 ✓ Starting control-plane đŸ•šī¸ @@ -248,12 +248,12 @@ following: these Pod Security Standards: ```shell - kind create cluster --name psa-with-cluster-pss --image kindest/node:v{{< skew currentVersion >}}.0 --config /tmp/pss/cluster-config.yaml + kind create cluster --name psa-with-cluster-pss --image kindest/node:v1.24.0 --config /tmp/pss/cluster-config.yaml ``` The output is similar to this: ``` Creating cluster "psa-with-cluster-pss" ... - ✓ Ensuring node image (kindest/node:v{{< skew currentVersion >}}.0) đŸ–ŧ + ✓ Ensuring node image (kindest/node:v1.24.0) đŸ–ŧ ✓ Preparing nodes đŸ“Ļ ✓ Writing configuration 📜 ✓ Starting control-plane đŸ•šī¸