Skip to content

Commit 3ccd15b

Browse files
committed
feat: add support for custom sidecar containers
Allows additional containers to be run in the same pod as the Factorio server.
1 parent 7150515 commit 3ccd15b

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

charts/factorio-server-charts/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@ spec:
252252
- pingpong3.factorio.com
253253
- pingpong4.factorio.com
254254
{{- end }}
255+
{{- if .Values.additionalContainers }}
256+
{{ toYaml .Values.additionalContainers | indent 6 }}
257+
{{- end }}
255258
{{- if .Values.nodeSelector }}
256259
nodeSelector:
257260
{{ toYaml .Values.nodeSelector | indent 8 }}

charts/factorio-server-charts/values.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,23 @@ persistence:
140140
## If you have additional labels to apply to the volume
141141
labels: {}
142142

143+
#### Additional containers ####
144+
### @section Additional Containers
145+
# Specify any additional sidecar containers for the deployment here, such as log or metric collectors.
146+
# See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.34/#container-v1-core for the full Container
147+
# reference.
148+
additionalContainers: []
149+
# - name: node_exporter
150+
# image: quay.io/prometheus/node_exporter:v1.9.1
151+
# command:
152+
# - --collector.disable-defaults
153+
# - --collector.textfile
154+
# - --collector.textfile.directory=/factorio/script-output/
155+
# ports:
156+
# - name: metrics
157+
# containerPort: 9100
158+
159+
143160

144161
#### Factorio application configuration ####
145162
## @section Factorio Parameters

0 commit comments

Comments
 (0)