1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00
kyverno/examples/resource_validate_nonRootUser.yaml
2019-07-29 19:01:17 -07:00

21 lines
380 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: psp-demo-unprivileged
labels:
test: psp
spec:
replicas: 1
selector:
matchLabels:
test: psp
template:
metadata:
labels:
test: psp
spec:
securityContext:
runAsNonRoot: true
containers:
- name: sec-ctx-unprivileged
image: nginxinc/nginx-unprivileged