Skip to content

Commit 04bedfa

Browse files
committed
add extraContainers support
1 parent ec66f7c commit 04bedfa

File tree

6 files changed

+55
-7
lines changed

6 files changed

+55
-7
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,13 @@ main:
355355
tolerations: []
356356
affinity: {}
357357

358+
# extraContainers is a list of sidecar containers. Specified as a YAML list.
359+
extraContainers: []
360+
# extraContainers:
361+
# - name: my-sidecar
362+
# image: busybox:latest
363+
# command: ["sh", "-c", "while true; do echo hello && sleep 60; done"]
364+
358365
# # # # # # # # # # # # # # # #
359366
#
360367
# Worker related settings
@@ -540,6 +547,13 @@ worker:
540547
tolerations: []
541548
affinity: {}
542549

550+
# extraContainers is a list of sidecar containers. Specified as a YAML list.
551+
extraContainers: []
552+
# extraContainers:
553+
# - name: my-sidecar
554+
# image: busybox:latest
555+
# command: ["sh", "-c", "while true; do echo hello && sleep 60; done"]
556+
543557
# Webhook related settings
544558
# With .Values.scaling.webhook.enabled=true you disable Webhooks from the main process, but you enable the processing on a different Webhook instance.
545559
# See https://github.com/8gears/n8n-helm-chart/issues/39#issuecomment-1579991754 for the full explanation.
@@ -725,6 +739,13 @@ webhook:
725739
tolerations: []
726740
affinity: {}
727741

742+
# extraContainers is a list of sidecar containers. Specified as a YAML list.
743+
extraContainers: []
744+
# extraContainers:
745+
# - name: my-sidecar
746+
# image: busybox:latest
747+
# command: ["sh", "-c", "while true; do echo hello && sleep 60; done"]
748+
728749
#
729750
# User defined supplementary K8s manifests
730751
#

charts/n8n/Chart.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: n8n
3-
version: 1.0.15
4-
appVersion: 1.112.0
3+
version: 1.1.0
4+
appVersion: 1.114.3
55
type: application
66
description: "Helm Chart for deploying n8n on Kubernetes, a fair-code workflow automation platform with native AI capabilities for technical teams. Easily automate tasks across different services."
77
home: https://github.com/8gears/n8n-helm-chart
@@ -34,5 +34,5 @@ annotations:
3434
artifacthub.io/prerelease: "false"
3535
# supported kinds are added, changed, deprecated, removed, fixed and security.
3636
artifacthub.io/changes: |
37-
- kind: changed
38-
description: "Update n8n app version to 1.112.0"
37+
- kind: added
38+
description: "Add extraContainers support for main, workers, and webhooks"

charts/n8n/templates/deployment.webhook.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ spec:
119119
{{- if .Values.webhook.extraVolumeMounts }}
120120
{{- toYaml .Values.webhook.extraVolumeMounts | nindent 12 }}
121121
{{- end }}
122+
{{- if .Values.webhook.extraContainers }}
123+
{{ tpl (toYaml .Values.webhook.extraContainers) . | nindent 8 }}
124+
{{- end }}
122125
{{- with .Values.hostAliases }}
123126
hostAliases:
124127
{{- toYaml . | nindent 8 }}

charts/n8n/templates/deployment.worker.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ spec:
115115
{{- if .Values.worker.extraVolumeMounts }}
116116
{{- toYaml .Values.worker.extraVolumeMounts | nindent 12 }}
117117
{{- end }}
118+
{{- if .Values.worker.extraContainers }}
119+
{{ tpl (toYaml .Values.worker.extraContainers) . | nindent 8 }}
120+
{{- end }}
118121
{{- with .Values.hostAliases }}
119122
hostAliases:
120123
{{- toYaml . | nindent 8 }}

charts/n8n/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ spec:
100100
{{- if .Values.main.extraVolumeMounts }}
101101
{{- toYaml .Values.main.extraVolumeMounts | nindent 12 }}
102102
{{- end }}
103+
{{- if .Values.main.extraContainers }}
104+
{{ tpl (toYaml .Values.main.extraContainers) . | nindent 8 }}
105+
{{- end }}
103106
{{- with .Values.hostAliases }}
104107
hostAliases:
105108
{{- toYaml . | nindent 8 }}

charts/n8n/values.yaml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ main:
126126
# mountPath: /etc/ssl/certs/postgresql
127127
# readOnly: true
128128

129-
130129
# Number of desired pods. More than one pod is supported in n8n enterprise.
131130
replicaCount: 1
132131

@@ -233,7 +232,6 @@ main:
233232
# - name: data
234233
# mountPath: /home/node/.n8n
235234

236-
237235
service:
238236
enabled: true
239237
annotations: {}
@@ -266,6 +264,13 @@ main:
266264
tolerations: []
267265
affinity: {}
268266

267+
# extraContainers is a list of sidecar containers. Specified as a YAML list.
268+
extraContainers: []
269+
# extraContainers:
270+
# - name: my-sidecar
271+
# image: busybox:latest
272+
# command: ["sh", "-c", "while true; do echo hello && sleep 60; done"]
273+
269274
# # # # # # # # # # # # # # # #
270275
#
271276
# Worker related settings
@@ -451,6 +456,13 @@ worker:
451456
tolerations: []
452457
affinity: {}
453458

459+
# extraContainers is a list of sidecar containers. Specified as a YAML list.
460+
extraContainers: []
461+
# extraContainers:
462+
# - name: my-sidecar
463+
# image: busybox:latest
464+
# command: ["sh", "-c", "while true; do echo hello && sleep 60; done"]
465+
454466
# Webhook related settings
455467
# With .Values.scaling.webhook.enabled=true you disable Webhooks from the main process, but you enable the processing on a different Webhook instance.
456468
# See https://github.com/8gears/n8n-helm-chart/issues/39#issuecomment-1579991754 for the full explanation.
@@ -467,7 +479,6 @@ webhook:
467479
# WEBHOOK_URL:
468480
# value: "http://webhook.domain.tld"
469481

470-
471482
#
472483
# Webhook Kubernetes specific settings
473484
#
@@ -636,6 +647,13 @@ webhook:
636647
tolerations: []
637648
affinity: {}
638649

650+
# extraContainers is a list of sidecar containers. Specified as a YAML list.
651+
extraContainers: []
652+
# extraContainers:
653+
# - name: my-sidecar
654+
# image: busybox:latest
655+
# command: ["sh", "-c", "while true; do echo hello && sleep 60; done"]
656+
639657
#
640658
# User defined supplementary K8s manifests
641659
#

0 commit comments

Comments
 (0)