From e6ebe2ab7cd3bd1ec90ea9b371e2135337055252 Mon Sep 17 00:00:00 2001 From: Greg Taylor Date: Wed, 15 Mar 2017 15:48:14 -0700 Subject: [PATCH] Factorio version bump + configurable port. (#547) * Bump factorio imageTag from 0.14.21 to 0.14.22. * Make factorio's game server port configurable. * fix(factorio): change port from string to int --- stable/factorio/Chart.yaml | 2 +- stable/factorio/templates/deployment.yaml | 2 ++ stable/factorio/templates/factorio-svc.yaml | 2 +- stable/factorio/values.yaml | 3 ++- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/stable/factorio/Chart.yaml b/stable/factorio/Chart.yaml index 5778e10720..129ef71d72 100755 --- a/stable/factorio/Chart.yaml +++ b/stable/factorio/Chart.yaml @@ -1,5 +1,5 @@ name: factorio -version: 0.1.4 +version: 0.2.0 description: Factorio dedicated server. keywords: - game diff --git a/stable/factorio/templates/deployment.yaml b/stable/factorio/templates/deployment.yaml index f9b1d47be7..c91224fa69 100644 --- a/stable/factorio/templates/deployment.yaml +++ b/stable/factorio/templates/deployment.yaml @@ -24,6 +24,8 @@ spec: value: {{ .Values.factorioServer.name | quote }} - name: FACTORIO_DESCRIPTION value: {{ .Values.factorioServer.description | quote }} + - name: FACTORIO_PORT + value: {{ .Values.factorioServer.port | quote }} - name: FACTORIO_MAX_PLAYERS value: {{ .Values.factorioServer.maxPlayers | quote }} - name: FACTORIO_IS_PUBLIC diff --git a/stable/factorio/templates/factorio-svc.yaml b/stable/factorio/templates/factorio-svc.yaml index c1f282140e..135f217625 100644 --- a/stable/factorio/templates/factorio-svc.yaml +++ b/stable/factorio/templates/factorio-svc.yaml @@ -11,7 +11,7 @@ spec: type: {{ .Values.factorioServer.serviceType }} ports: - name: factorio - port: 34197 + port: {{ .Values.factorioServer.port | int }} targetPort: factorio protocol: UDP selector: diff --git a/stable/factorio/values.yaml b/stable/factorio/values.yaml index 5484128760..5511c1aecc 100644 --- a/stable/factorio/values.yaml +++ b/stable/factorio/values.yaml @@ -1,7 +1,7 @@ # Factorio image version # ref: https://quay.io/repository/games_on_k8s/factorio?tab=tags image: quay.io/games_on_k8s/factorio -imageTag: "0.14.21" +imageTag: "0.14.22" # Configure resource requests and limits # ref: http://kubernetes.io/docs/user-guide/compute-resources/ @@ -15,6 +15,7 @@ resources: factorioServer: name: Kubernetes Server description: Factorio running on Kubernetes + port: 34197 # Lock this server down with a password. #password: change.me maxPlayers: 255