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

22 lines
380 B
YAML
Raw Normal View History

2019-07-17 13:31:00 -07:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: psp-demo-unprivileged
labels:
2019-07-29 19:01:17 -07:00
test: psp
2019-07-17 13:31:00 -07:00
spec:
replicas: 1
selector:
matchLabels:
2019-07-29 19:01:17 -07:00
test: psp
2019-07-17 13:31:00 -07:00
template:
metadata:
labels:
2019-07-29 19:01:17 -07:00
test: psp
2019-07-17 13:31:00 -07:00
spec:
securityContext:
runAsNonRoot: true
containers:
- name: sec-ctx-unprivileged
image: nginxinc/nginx-unprivileged