1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-12 19:06:55 +00:00
kyverno/examples/Validate/check_hostpath.yaml

17 lines
314 B
YAML
Raw Normal View History

apiVersion : kubepolicy.nirmata.io/v1alpha1
kind: Policy
metadata:
name: check-host-path
spec:
rules:
- name: check-host-path
resource:
kinds:
- Pod
validate:
message: "Host path volumes are not allowed"
pattern:
volumes:
- name: "*"
hostPath: null