1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00
kyverno/test/policy/validate/check_nodeport.yaml

17 lines
300 B
YAML
Raw Normal View History

2019-11-13 13:56:20 -08:00
apiVersion : kyverno.io/v1
2019-10-14 12:36:19 -07:00
kind: ClusterPolicy
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"