expose factorio through nodeport

This commit is contained in:
SeanOMik 2023-04-21 01:51:02 -04:00
parent 18a2c0acd8
commit 5d030f87cb
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
1 changed files with 6 additions and 4 deletions

View File

@ -21,11 +21,11 @@ spec:
service:
main:
type: LoadBalancer
type: NodePort
annotations:
metallb.universe.tf/allow-shared-ip: "main-ip-192.168.87.10"
metallb.universe.tf/loadBalancerIPs: 192.168.87.10
# annotations:
# metallb.universe.tf/allow-shared-ip: "main-ip-192.168.87.10"
# metallb.universe.tf/loadBalancerIPs: 192.168.87.10
ports:
http:
@ -35,6 +35,7 @@ spec:
enabled: true
primary: true
port: &game_port 34197
nodePort: 30001
targetPort: *game_port
protocol: UDP
@ -42,6 +43,7 @@ spec:
enabled: true
primary: true
port: &rcon_port 27015
nodePort: 30002
targetPort: *rcon_port
protocol: TCP