mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 09:26:54 +00:00
14 lines
283 B
YAML
14 lines
283 B
YAML
|
apiVersion: policy.nirmata.io/v1alpha1
|
||
|
kind: Policy
|
||
|
metadata:
|
||
|
name: check-host-path
|
||
|
spec:
|
||
|
rules:
|
||
|
- name: check-host-path
|
||
|
resource:
|
||
|
kind: Service
|
||
|
validate:
|
||
|
message: "Node port services are not allowed"
|
||
|
pattern:
|
||
|
spec:
|
||
|
type: "!NodePort"
|