diff --git a/charts/n8n/templates/runners-deployment.yaml b/charts/n8n/templates/runners-deployment.yaml index d6aa35f..a4e18f9 100644 --- a/charts/n8n/templates/runners-deployment.yaml +++ b/charts/n8n/templates/runners-deployment.yaml @@ -42,6 +42,18 @@ spec: secretKeyRef: name: {{ .Values.runners.envSecretName }} key: TELEGRAM_BOT_TOKEN + {{- if .Values.runners.launcherConfig.enabled }} + volumeMounts: + - name: runners-config + mountPath: /etc/n8n-task-runners.json + subPath: n8n-task-runners.json + {{- end }} resources: {{- toYaml .Values.runners.resources | nindent 10 }} + {{- if .Values.runners.launcherConfig.enabled }} + volumes: + - name: runners-config + configMap: + name: {{ include "n8n.fullname" . }}-runners-config + {{- end }} {{- end }} diff --git a/charts/n8n/values.yaml b/charts/n8n/values.yaml index abc89ef..d55e6c2 100644 --- a/charts/n8n/values.yaml +++ b/charts/n8n/values.yaml @@ -82,6 +82,33 @@ runners: authSecretKey: N8N_ENCRYPTION_KEY # Secret containing TELEGRAM_BOT_TOKEN key for expression env access envSecretName: n8n-secrets + launcherConfig: + enabled: true + jsAllowedEnv: + - PATH + - GENERIC_TIMEZONE + - NODE_OPTIONS + - NODE_PATH + - N8N_RUNNERS_AUTO_SHUTDOWN_TIMEOUT + - N8N_RUNNERS_TASK_TIMEOUT + - N8N_RUNNERS_MAX_CONCURRENCY + - N8N_SENTRY_DSN + - N8N_VERSION + - ENVIRONMENT + - DEPLOYMENT_NAME + - HOME + - N8N_BLOCK_ENV_ACCESS_IN_NODE + - TELEGRAM_BOT_TOKEN + pythonAllowedEnv: + - PATH + - N8N_RUNNERS_LAUNCHER_LOG_LEVEL + - N8N_RUNNERS_AUTO_SHUTDOWN_TIMEOUT + - N8N_RUNNERS_TASK_TIMEOUT + - N8N_RUNNERS_MAX_CONCURRENCY + - N8N_SENTRY_DSN + - N8N_VERSION + - ENVIRONMENT + - DEPLOYMENT_NAME resources: requests: cpu: 100m