expose factorio through nodeport
This commit is contained in:
parent
18a2c0acd8
commit
5d030f87cb
|
@ -21,11 +21,11 @@ spec:
|
||||||
|
|
||||||
service:
|
service:
|
||||||
main:
|
main:
|
||||||
type: LoadBalancer
|
type: NodePort
|
||||||
|
|
||||||
annotations:
|
# annotations:
|
||||||
metallb.universe.tf/allow-shared-ip: "main-ip-192.168.87.10"
|
# metallb.universe.tf/allow-shared-ip: "main-ip-192.168.87.10"
|
||||||
metallb.universe.tf/loadBalancerIPs: 192.168.87.10
|
# metallb.universe.tf/loadBalancerIPs: 192.168.87.10
|
||||||
|
|
||||||
ports:
|
ports:
|
||||||
http:
|
http:
|
||||||
|
@ -35,6 +35,7 @@ spec:
|
||||||
enabled: true
|
enabled: true
|
||||||
primary: true
|
primary: true
|
||||||
port: &game_port 34197
|
port: &game_port 34197
|
||||||
|
nodePort: 30001
|
||||||
targetPort: *game_port
|
targetPort: *game_port
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
|
|
||||||
|
@ -42,6 +43,7 @@ spec:
|
||||||
enabled: true
|
enabled: true
|
||||||
primary: true
|
primary: true
|
||||||
port: &rcon_port 27015
|
port: &rcon_port 27015
|
||||||
|
nodePort: 30002
|
||||||
targetPort: *rcon_port
|
targetPort: *rcon_port
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue