Fixes runAsGroup security context example (#13535) (#13538)

This commit is contained in:
Ricardo Cordeiro
2019-04-10 02:56:12 +01:00
committed by Kubernetes Prow Robot
parent a80483bb52
commit 5d83dcbf46
2 changed files with 7 additions and 5 deletions
@@ -5,13 +5,15 @@ metadata:
spec:
securityContext:
runAsUser: 1000
runAsGroup: 3000
fsGroup: 2000
volumes:
- name: sec-ctx-vol
emptyDir: {}
containers:
- name: sec-ctx-demo
image: gcr.io/google-samples/node-hello:1.0
image: busybox
command: [ "sh", "-c", "sleep 1h" ]
volumeMounts:
- name: sec-ctx-vol
mountPath: /data/demo