1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-07 00:17:13 +00:00
kyverno/examples/demo/security_context/policy.yaml

20 lines
377 B
YAML
Raw Normal View History

2019-06-22 16:05:06 -07:00
apiVersion : kyverno.io/v1alpha1
kind: Policy
metadata:
name: policy-security-context
spec:
rules:
- name: set-userID
resource:
kinds:
- Deployment
selector :
matchLabels:
app.type: prod
mutate:
overlay:
spec:
template:
spec:
securityContext:
2019-06-24 18:51:11 -07:00
runAsNonRoot: true