mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-15 17:51:20 +00:00
19 lines
350 B
YAML
19 lines
350 B
YAML
apiVersion : kyverno.io/v1
|
|
kind: ClusterPolicy
|
|
metadata:
|
|
name: check-host-path
|
|
spec:
|
|
rules:
|
|
- name: check-host-path
|
|
match:
|
|
resources:
|
|
kinds:
|
|
- Pod
|
|
validate:
|
|
message: "Host path is not allowed"
|
|
pattern:
|
|
spec:
|
|
volumes:
|
|
- name: "*"
|
|
hostPath:
|
|
path: ""
|