mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 01:16:55 +00:00
18 lines
No EOL
431 B
YAML
18 lines
No EOL
431 B
YAML
apiVersion: kyverno.io/v1alpha1
|
|
kind: ClusterPolicy
|
|
metadata:
|
|
name: validate-not-readonly-rootfilesystem
|
|
spec:
|
|
rules:
|
|
- name: validate-not-readonly-rootfilesystem
|
|
match:
|
|
resources:
|
|
kinds:
|
|
- Pod
|
|
validate:
|
|
message: "Container should not have read-only rootfilesystem"
|
|
pattern:
|
|
spec:
|
|
containers:
|
|
- securityContext:
|
|
readOnlyRootFilesystem: false |