mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
16 lines
299 B
YAML
16 lines
299 B
YAML
|
apiVersion: policy.nirmata.io/v1alpha1
|
||
|
kind: Policy
|
||
|
metadata:
|
||
|
name: check-host-path
|
||
|
spec:
|
||
|
rules:
|
||
|
- name: check-host-path
|
||
|
resource:
|
||
|
kind: Pod
|
||
|
validate:
|
||
|
message: "Host path volumes are not allowed"
|
||
|
pattern:
|
||
|
volumes:
|
||
|
- name: "*"
|
||
|
hostPath: null
|