fixed indentation, cleaner command

This commit is contained in:
Nicolai von Neudeck 2016-11-29 00:43:01 +01:00 committed by GitHub
parent c61aee3c54
commit fd0d4112b0
1 changed files with 11 additions and 12 deletions

View File

@ -101,17 +101,16 @@ Capabilities are added/dropped in the [`SecurityContext`](http://kubernetes.io/d
apiVersion: v1
kind: Pod
metadata:
name: hello-world
name: hello-world
spec:
containers:
- name: friendly-container
image: "alpine:3.4"
command:
- echo "hello"
securityContext:
capabilities:
add:
- SYS_NICE
drop:
- KILL
containers:
- name: friendly-container
image: "alpine:3.4"
command: ["/bin/echo", "hello", "world"]
securityContext:
capabilities:
add:
- SYS_NICE
drop:
- KILL
```