mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-07 00:17:13 +00:00
21 lines
404 B
YAML
21 lines
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
|