File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11apiVersion : v1
22name : mc-router
3- version : 1.4.1
3+ version : 1.5.0
44# not used
55appVersion : 1.0.0
66home : https://github.com/itzg/mc-router
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ metadata:
1010spec :
1111 {{- with .Values.services.minecraft }}
1212 type : {{ .type }}
13+ {{- if .loadBalancerIP }}
14+ loadBalancerIP : {{ .loadBalancerIP }}
15+ {{- end }}
1316 ports :
1417 - port : {{ .port }}
1518 {{- if list "LoadBalancer" "NodePort" | has .type }}
Original file line number Diff line number Diff line change 5151 "port" : {
5252 "type" : " integer" ,
5353 "minimum" : 1
54+ },
55+ "nodePort" : {
56+ "type" : " integer" ,
57+ "minimum" : 1
58+ },
59+ "loadBalancerIP" : {
60+ "type" : " string" ,
61+ "title" : " IP address to assign to LoadBalancer service"
62+ }
63+ },
64+ "if" : {
65+ "properties" : {
66+ "loadBalancerIP" : {
67+ "type" : " string" ,
68+ "minLength" : 1
69+ }
70+ },
71+ "required" : [" loadBalancerIP" ]
72+ },
73+ "then" : {
74+ "properties" : {
75+ "type" : {
76+ "const" : " LoadBalancer"
77+ }
5478 }
79+ },
80+ "errorMessage" : {
81+ "then" : " loadBalancerIP can only be used when service type is LoadBalancer"
5582 }
5683 }
5784 }
Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ services:
6565 port : 25565
6666 # Service port exposed externally on each node
6767 # nodePort: 30065
68+ # IP address to assign to LoadBalancer service
69+ # loadBalancerIP: ""
6870 # Service annotations
6971 # annotations: {}
7072
You can’t perform that action at this time.
0 commit comments