diff --git a/k8s/psp-restricted.yaml b/k8s/psp-restricted.yaml index a73e7049..962685d0 100644 --- a/k8s/psp-restricted.yaml +++ b/k8s/psp-restricted.yaml @@ -1,5 +1,5 @@ --- -apiVersion: extensions/v1beta1 +apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: annotations: 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: