1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00
kyverno/examples/validate/check_nodeport.yaml
2019-07-25 14:57:44 -04:00

16 lines
299 B
YAML

apiVersion : kyverno.io/v1alpha1
kind: Policy
metadata:
name: check-node-port
spec:
rules:
- name: check-node-port
match:
resources:
kinds:
- Service
validate:
message: "NodePort type is not allowed"
pattern:
spec:
type: "!NodePort"