mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
18 lines
331 B
YAML
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: ""
|