1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 01:46:55 +00:00
kyverno/examples/best_practices/resources/resource_validate_deny_runasrootuser.yaml

10 lines
186 B
YAML

apiVersion: v1
kind: Pod
metadata:
name: check-root-user
spec:
securityContext:
runAsNonRoot: true
containers:
- name: check-root-user
image: nginxinc/nginx-unprivileged