Merge pull request #557 from barpilot/psp

psp: update deprecated parts
This commit is contained in:
Jérôme Petazzoni
2020-05-03 17:07:41 +02:00
committed by GitHub
2 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
---
apiVersion: extensions/v1beta1
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
annotations:

View File

@@ -280,14 +280,14 @@
- Try to create a Pod directly:
```bash
kubectl run testpsp1 --image=nginx --restart=Never
kubectl run testpsp1 --image=nginx
```
<!-- ```wait forbidden: no providers available``` -->
- 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: