1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00
kyverno/test/SecurityContext/policy.yaml
2019-07-25 14:57:44 -04:00

21 lines
No EOL
401 B
YAML

apiVersion : kyverno.io/v1alpha1
kind: Policy
metadata:
name: policy-security-context
spec:
rules:
- name: set-userID
match:
resources:
kinds:
- Deployment
selector :
matchLabels:
app.type: prod
mutate:
overlay:
spec:
template:
spec:
securityContext:
runAsNonRoot: true