From e3f7c7ea1f298b524a66c3e54d712765ad803373 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Fri, 21 Apr 2023 01:08:16 -0400 Subject: [PATCH] Specify port with environmental variable --- .../apps/game-servers/factorio/helm-release.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/cluster/apps/game-servers/factorio/helm-release.yaml b/cluster/apps/game-servers/factorio/helm-release.yaml index ba01b1a..6b39c5d 100644 --- a/cluster/apps/game-servers/factorio/helm-release.yaml +++ b/cluster/apps/game-servers/factorio/helm-release.yaml @@ -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: