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: 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