From 0bc2e70d04f7e4e35c7646c5e11e960ddd094be6 Mon Sep 17 00:00:00 2001 From: Don Kendall Date: Wed, 8 Jan 2025 17:12:39 -0500 Subject: [PATCH] feat: add hostAliases --- charts/n8n/templates/deployment.webhooks.yaml | 4 ++++ charts/n8n/templates/deployment.worker.yaml | 4 ++++ charts/n8n/templates/deployment.yaml | 4 ++++ charts/n8n/values.yaml | 5 +++++ 4 files changed, 17 insertions(+) diff --git a/charts/n8n/templates/deployment.webhooks.yaml b/charts/n8n/templates/deployment.webhooks.yaml index 3b7f22e..7557b75 100644 --- a/charts/n8n/templates/deployment.webhooks.yaml +++ b/charts/n8n/templates/deployment.webhooks.yaml @@ -101,4 +101,8 @@ spec: - key: "secret.json" path: "secret.json" {{- end }} + {{- with .Values.hostAliases }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} {{- end }} diff --git a/charts/n8n/templates/deployment.worker.yaml b/charts/n8n/templates/deployment.worker.yaml index 0014d3e..e20088e 100644 --- a/charts/n8n/templates/deployment.worker.yaml +++ b/charts/n8n/templates/deployment.worker.yaml @@ -101,4 +101,8 @@ spec: - key: "secret.json" path: "secret.json" {{- end }} + {{- with .Values.hostAliases }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} {{- end }} diff --git a/charts/n8n/templates/deployment.yaml b/charts/n8n/templates/deployment.yaml index a458441..3435719 100644 --- a/charts/n8n/templates/deployment.yaml +++ b/charts/n8n/templates/deployment.yaml @@ -122,3 +122,7 @@ spec: - key: "secret.json" path: "secret.json" {{- end }} + {{- with .Values.hostAliases }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} \ No newline at end of file diff --git a/charts/n8n/values.yaml b/charts/n8n/values.yaml index 849ba2c..846a6ed 100644 --- a/charts/n8n/values.yaml +++ b/charts/n8n/values.yaml @@ -146,6 +146,11 @@ persistence: ## # existingClaim: +hostAliases: {} +# - hostnames: +# - service-example.local +# ip: 8.8.8.8 + replicaCount: 1 # here you can specify the deployment strategy as Recreate or RollingUpdate with optional maxSurge and maxUnavailable