1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00
kyverno/test/resources/resource_validate_containerSecurityContext.yaml

23 lines
429 B
YAML
Raw Normal View History

2019-07-17 13:33:05 -07:00
apiVersion: apps/v1
kind: Deployment
metadata:
2019-07-29 19:01:17 -07:00
name: csc-demo-unprivileged
2019-07-17 13:33:05 -07:00
labels:
app.type: prod
spec:
replicas: 1
selector:
matchLabels:
app: psp
template:
metadata:
labels:
app: psp
spec:
containers:
- name: sec-ctx-unprivileged
image: nginxinc/nginx-unprivileged
securityContext:
runAsNonRoot: true
2019-07-29 19:01:17 -07:00
allowPrivilegeEscalation: false