From b0bff595cf002be223ba9cf283f4a040023a46ec Mon Sep 17 00:00:00 2001 From: Guilhem Lettron Date: Wed, 29 Apr 2020 22:31:49 +0200 Subject: [PATCH] psp: update generator helpers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit kubectl run → kubectl create deployment kubectl run --restart=Never → kubectl run --- slides/k8s/podsecuritypolicy.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/slides/k8s/podsecuritypolicy.md b/slides/k8s/podsecuritypolicy.md index 8e0e9a0c..b15a6d3b 100644 --- a/slides/k8s/podsecuritypolicy.md +++ b/slides/k8s/podsecuritypolicy.md @@ -280,14 +280,14 @@ - Try to create a Pod directly: ```bash - kubectl run testpsp1 --image=nginx --restart=Never + kubectl run testpsp1 --image=nginx ``` - Try to create a Deployment: ```bash - kubectl run testpsp2 --image=nginx + kubectl create deployment testpsp2 --image=nginx ``` - Look at existing resources: @@ -345,12 +345,12 @@ We can get hints at what's happening by looking at the ReplicaSet and Events. - Check that we can now create a Pod directly: ```bash - kubectl run testpsp3 --image=nginx --restart=Never + kubectl run testpsp3 --image=nginx ``` - Create a Deployment as well: ```bash - kubectl run testpsp4 --image=nginx + kubectl create deployment testpsp4 --image=nginx ``` - Confirm that the Deployment is *not* creating any Pods: