1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 09:26:54 +00:00
kyverno/documentation/deny_runasrootuser.yaml

13 lines
236 B
YAML
Raw Normal View History

2020-10-05 10:38:58 -07:00
apiVersion: v1
kind: Pod
metadata:
name: check-root-user
spec:
# securityContext:
# runAsNonRoot: true
containers:
- name: check-root-user
image: nginxinc/nginx-unprivileged
securityContext:
runAsNonRoot: true