Skip to content

Commit 8a4e62f

Browse files
committed
Separate commands from their outputs
1 parent 23eea7e commit 8a4e62f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

content/en/docs/concepts/security/pod-security-policy.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,11 @@ pod's service account nor `fake-user` have permission to use the new policy:
287287

288288
```shell
289289
kubectl-user auth can-i use podsecuritypolicy/example
290+
```
291+
292+
The output is similar to this:
293+
294+
```
290295
no
291296
```
292297

@@ -303,14 +308,27 @@ kubectl-admin create role psp:unprivileged \
303308
--verb=use \
304309
--resource=podsecuritypolicy \
305310
--resource-name=example
311+
```
312+
313+
```
306314
role "psp:unprivileged" created
315+
```
307316
317+
```shell
308318
kubectl-admin create rolebinding fake-user:psp:unprivileged \
309319
--role=psp:unprivileged \
310320
--serviceaccount=psp-example:fake-user
321+
```
322+
323+
```
311324
rolebinding "fake-user:psp:unprivileged" created
325+
```
312326

327+
```shell
313328
kubectl-user auth can-i use podsecuritypolicy/example
329+
```
330+
331+
```
314332
yes
315333
```
316334

@@ -340,6 +358,11 @@ newly created PodSecurityPolicy:
340358

341359
```shell
342360
kubectl-user get pod pause -o yaml | grep kubernetes.io/psp
361+
```
362+
363+
The output is similar to this
364+
365+
```
343366
kubernetes.io/psp: example
344367
```
345368

0 commit comments

Comments
 (0)