7122a4498a
Changes where done with these commands: reprec 'image: busybox(?!:)' 'image: busybox:1.28' */docs */examples reprec -- '--image=busybox(?!:)' '--image=busybox:1.28' */docs */examples Related issues: https://github.com/docker-library/busybox/issues/48 https://github.com/kubernetes/kubernetes/issues/66924
22 lines
429 B
YAML
22 lines
429 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: security-context-demo
|
|
spec:
|
|
securityContext:
|
|
runAsUser: 1000
|
|
runAsGroup: 3000
|
|
fsGroup: 2000
|
|
volumes:
|
|
- name: sec-ctx-vol
|
|
emptyDir: {}
|
|
containers:
|
|
- name: sec-ctx-demo
|
|
image: busybox:1.28
|
|
command: [ "sh", "-c", "sleep 1h" ]
|
|
volumeMounts:
|
|
- name: sec-ctx-vol
|
|
mountPath: /data/demo
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|