mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 01:16:55 +00:00
17 lines
No EOL
345 B
YAML
17 lines
No EOL
345 B
YAML
apiVersion: "kyverno.io/v1alpha1"
|
|
kind: "ClusterPolicy"
|
|
metadata:
|
|
name: "deny-use-of-host-fs"
|
|
spec:
|
|
rules:
|
|
- name: "deny-use-of-host-fs"
|
|
match:
|
|
resources:
|
|
kinds:
|
|
- "Pod"
|
|
validate:
|
|
message: "Host path is not allowed"
|
|
pattern:
|
|
spec:
|
|
volumes:
|
|
- X(hostPath): null |