Specify port with environmental variable

This commit is contained in:
SeanOMik 2023-04-21 01:08:16 -04:00
parent b3de21f6e4
commit e3f7c7ea1f
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
1 changed files with 11 additions and 3 deletions

View File

@ -28,12 +28,20 @@ spec:
game:
enabled: true
primary: true
port: &port 34197
targetPort: *port
port: &game_port 34197
targetPort: *game_port
protocol: UDP
rcon:
enabled: true
primary: true
port: &rcon_port 27015
targetPort: *rcon_port
protocol: TCP
env:
TZ: America/New_York
PORT: *game_port
probes:
liveness:
@ -50,7 +58,7 @@ spec:
- path: /
pathType: Prefix
service:
port: *port
port: *game_port
persistence:
data: