From 3ccd15b6f0981386c7a6f6acc0e3e21ce163de6b Mon Sep 17 00:00:00 2001 From: Ben Reedy Date: Mon, 6 Oct 2025 07:30:34 +1000 Subject: [PATCH] feat: add support for custom sidecar containers Allows additional containers to be run in the same pod as the Factorio server. --- .../templates/deployment.yaml | 3 +++ charts/factorio-server-charts/values.yaml | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/charts/factorio-server-charts/templates/deployment.yaml b/charts/factorio-server-charts/templates/deployment.yaml index 0d94354..ed852af 100644 --- a/charts/factorio-server-charts/templates/deployment.yaml +++ b/charts/factorio-server-charts/templates/deployment.yaml @@ -252,6 +252,9 @@ spec: - pingpong3.factorio.com - pingpong4.factorio.com {{- end }} +{{- if .Values.additionalContainers }} +{{ toYaml .Values.additionalContainers | indent 6 }} +{{- end }} {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }} diff --git a/charts/factorio-server-charts/values.yaml b/charts/factorio-server-charts/values.yaml index 16ac567..94ec8ac 100644 --- a/charts/factorio-server-charts/values.yaml +++ b/charts/factorio-server-charts/values.yaml @@ -140,6 +140,23 @@ persistence: ## If you have additional labels to apply to the volume labels: {} +#### Additional containers #### +### @section Additional Containers +# Specify any additional sidecar containers for the deployment here, such as log or metric collectors. +# See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.34/#container-v1-core for the full Container +# reference. +additionalContainers: [] + # - name: node_exporter + # image: quay.io/prometheus/node_exporter:v1.9.1 + # command: + # - --collector.disable-defaults + # - --collector.textfile + # - --collector.textfile.directory=/factorio/script-output/ + # ports: + # - name: metrics + # containerPort: 9100 + + #### Factorio application configuration #### ## @section Factorio Parameters