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