1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/examples/validate/check_hostpath.yaml
2019-05-23 20:42:34 -07:00

18 lines
331 B
YAML

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