Specify port with environmental variable
This commit is contained in:
parent
b3de21f6e4
commit
e3f7c7ea1f
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue