mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 17:37:12 +00:00
21 lines
No EOL
404 B
YAML
21 lines
No EOL
404 B
YAML
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:
|
|
runAsUser: 1000
|
|
fsGroup: 2000 |