From f3ca90cd03d32792761a7e85d4a4bd1032dd0ff1 Mon Sep 17 00:00:00 2001 From: younsl Date: Sun, 24 Aug 2025 23:57:37 +0900 Subject: [PATCH 1/7] feat(n8n): Add support spec.containers.resizePolicy for seamless pod replacement * Reference: https://kubernetes.io/docs/tasks/configure-pod-container/resize-container-resources/ Signed-off-by: younsl --- charts/n8n/templates/deployment.webhook.yaml | 4 ++++ charts/n8n/templates/deployment.worker.yaml | 4 ++++ charts/n8n/templates/deployment.yaml | 4 ++++ charts/n8n/values.yaml | 22 ++++++++++++++++++++ 4 files changed, 34 insertions(+) diff --git a/charts/n8n/templates/deployment.webhook.yaml b/charts/n8n/templates/deployment.webhook.yaml index 5dc22fc..8eb71e7 100644 --- a/charts/n8n/templates/deployment.webhook.yaml +++ b/charts/n8n/templates/deployment.webhook.yaml @@ -112,6 +112,10 @@ spec: {{- toYaml .Values.webhook.securityContext | nindent 12 }} resources: {{- toYaml .Values.webhook.resources | nindent 12 }} + {{- with .Values.webhook.resizePolicy }} + resizePolicy: + {{- toYaml . | nindent 12 }} + {{- end }} volumeMounts: - name: data mountPath: /home/node/.n8n diff --git a/charts/n8n/templates/deployment.worker.yaml b/charts/n8n/templates/deployment.worker.yaml index 13d7a8d..ed2b34c 100644 --- a/charts/n8n/templates/deployment.worker.yaml +++ b/charts/n8n/templates/deployment.worker.yaml @@ -108,6 +108,10 @@ spec: {{- end }} resources: {{- toYaml .Values.worker.resources | nindent 12 }} + {{- with .Values.worker.resizePolicy }} + resizePolicy: + {{- toYaml . | nindent 12 }} + {{- end }} volumeMounts: - name: data mountPath: /home/node/.n8n diff --git a/charts/n8n/templates/deployment.yaml b/charts/n8n/templates/deployment.yaml index 523df2b..f034ee3 100644 --- a/charts/n8n/templates/deployment.yaml +++ b/charts/n8n/templates/deployment.yaml @@ -93,6 +93,10 @@ spec: {{- end }} resources: {{- toYaml .Values.main.resources | nindent 12 }} + {{- with .Values.main.resizePolicy }} + resizePolicy: + {{- toYaml . | nindent 12 }} + {{- end }} volumeMounts: - name: data mountPath: /home/node/.n8n diff --git a/charts/n8n/values.yaml b/charts/n8n/values.yaml index 7c1b25a..e66b3ec 100644 --- a/charts/n8n/values.yaml +++ b/charts/n8n/values.yaml @@ -255,6 +255,13 @@ main: # cpu: 100m # memory: 128Mi + # Container resize policy allows runtime resource updates without pod restart + resizePolicy: [] + # - resourceName: cpu + # restartPolicy: NotRequired + # - resourceName: memory + # restartPolicy: RestartContainer + autoscaling: enabled: false minReplicas: 1 @@ -440,6 +447,13 @@ worker: # cpu: 100m # memory: 128Mi + # Container resize policy allows runtime resource updates without pod restart + resizePolicy: [] + # - resourceName: cpu + # restartPolicy: NotRequired + # - resourceName: memory + # restartPolicy: RestartContainer + autoscaling: enabled: false minReplicas: 1 @@ -626,6 +640,14 @@ webhook: # requests: # cpu: 100m # memory: 128Mi + + # Container resize policy allows runtime resource updates without pod restart + resizePolicy: [] + # - resourceName: cpu + # restartPolicy: NotRequired + # - resourceName: memory + # restartPolicy: RestartContainer + autoscaling: enabled: false minReplicas: 1 From bea3c51d1ffa5a09495719f47b825a0edb534e76 Mon Sep 17 00:00:00 2001 From: younsl Date: Mon, 25 Aug 2025 00:00:12 +0900 Subject: [PATCH 2/7] chore(n8n): Bump minor version and add changelog * artifacthub.io annotations in Chart.yaml are based on https://artifacthub.io/docs/topics/annotations/helm/. * Bump chart version minor. See: https://github.com/8gears/n8n-helm-chart\?tab\=readme-ov-file\#chart-versioning-schema --- charts/n8n/Chart.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/charts/n8n/Chart.yaml b/charts/n8n/Chart.yaml index 3d83537..7bf0744 100644 --- a/charts/n8n/Chart.yaml +++ b/charts/n8n/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: n8n -version: 1.0.12 +version: 1.1.0 appVersion: 1.107.4 type: application 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." @@ -34,7 +34,8 @@ annotations: artifacthub.io/prerelease: "false" # supported kinds are added, changed, deprecated, removed, fixed and security. artifacthub.io/changes: | - - kind: fixed - description: "allows empty tls for ingres: fixes https://github.com/8gears/n8n-helm-chart/issues/167" - - kind: changed - description: "Bump appVersion to n8n 1.107.4." + - kind: added + description: Add support spec.containers.resizePolicy for all containers. This allows to control the behavior when a container is resized. + links: + - name: GitHub PR + url: https://github.com/8gears/n8n-helm-chart/pull/232 From 21e4dd1e049f58658cc2da0a953150bcaf7683a1 Mon Sep 17 00:00:00 2001 From: Younsung Lee Date: Mon, 25 Aug 2025 08:53:52 +0900 Subject: [PATCH 3/7] fix: Bump patch chart version --- charts/n8n/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/n8n/Chart.yaml b/charts/n8n/Chart.yaml index 7bf0744..3ef3749 100644 --- a/charts/n8n/Chart.yaml +++ b/charts/n8n/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: n8n -version: 1.1.0 +version: 1.0.13 appVersion: 1.107.4 type: application 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." From 5ac6e87634d360d9eb2e809883be612c76d520ae Mon Sep 17 00:00:00 2001 From: Younsung Lee Date: Mon, 25 Aug 2025 09:01:25 +0900 Subject: [PATCH 4/7] fix: Lint empty EOL space --- charts/n8n/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/n8n/Chart.yaml b/charts/n8n/Chart.yaml index 3ef3749..0cc0b4d 100644 --- a/charts/n8n/Chart.yaml +++ b/charts/n8n/Chart.yaml @@ -38,4 +38,4 @@ annotations: description: Add support spec.containers.resizePolicy for all containers. This allows to control the behavior when a container is resized. links: - name: GitHub PR - url: https://github.com/8gears/n8n-helm-chart/pull/232 + url: https://github.com/8gears/n8n-helm-chart/pull/232 From 4d7adc6cdfbb21f999d80aab35d7e8458d61641c Mon Sep 17 00:00:00 2001 From: Younsung Lee Date: Sat, 30 Aug 2025 16:00:45 +0900 Subject: [PATCH 5/7] fix: Lint return EOL --- charts/n8n/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/n8n/Chart.yaml b/charts/n8n/Chart.yaml index fdda687..0287d18 100644 --- a/charts/n8n/Chart.yaml +++ b/charts/n8n/Chart.yaml @@ -38,4 +38,4 @@ annotations: description: Add support spec.containers.resizePolicy for all containers. This allows to control the behavior when a container is resized. links: - name: GitHub PR - url: https://github.com/8gears/n8n-helm-chart/pull/232 \ No newline at end of file + url: https://github.com/8gears/n8n-helm-chart/pull/232 From 93b4b1a4bf8535c2dc062ed529154d3c79d0af87 Mon Sep 17 00:00:00 2001 From: Younsung Lee Date: Tue, 2 Sep 2025 22:18:16 +0900 Subject: [PATCH 6/7] style: Add return to EOL for linting --- charts/n8n/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/n8n/Chart.yaml b/charts/n8n/Chart.yaml index a2d3e98..503e11d 100644 --- a/charts/n8n/Chart.yaml +++ b/charts/n8n/Chart.yaml @@ -38,4 +38,4 @@ annotations: description: Add support spec.containers.resizePolicy for all containers. This allows to control the behavior when a container is resized. links: - name: GitHub PR - url: https://github.com/8gears/n8n-helm-chart/pull/232 \ No newline at end of file + url: https://github.com/8gears/n8n-helm-chart/pull/232 From d258771d2670ed6402d519647e096ad1c2b8934a Mon Sep 17 00:00:00 2001 From: younsl Date: Tue, 2 Sep 2025 22:37:40 +0900 Subject: [PATCH 7/7] bump: Chart patch version * This rebump is caused by PR #239 Signed-off-by: younsl --- charts/n8n/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/n8n/Chart.yaml b/charts/n8n/Chart.yaml index 503e11d..d731d11 100644 --- a/charts/n8n/Chart.yaml +++ b/charts/n8n/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: n8n -version: 1.0.14 +version: 1.0.15 appVersion: 1.109.1 type: application 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."