1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00
kyverno/examples/Validate/check_nodeport.yaml
2019-05-22 17:29:26 -07:00

15 lines
No EOL
287 B
YAML

apiVersion : kyverno.io/v1alpha1
kind: Policy
metadata:
name: check-host-path
spec:
rules:
- name: check-host-path
resource:
kinds:
- Service
validate:
message: "Node port services are not allowed"
pattern:
spec:
type: "!NodePort"