Try another env in n8n

This commit is contained in:
dvirlabs 2026-05-27 09:11:07 +03:00
parent 57466f6363
commit 57ea1b14dc
2 changed files with 39 additions and 0 deletions

View File

@ -42,6 +42,18 @@ spec:
secretKeyRef: secretKeyRef:
name: {{ .Values.runners.envSecretName }} name: {{ .Values.runners.envSecretName }}
key: TELEGRAM_BOT_TOKEN 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: resources:
{{- toYaml .Values.runners.resources | nindent 10 }} {{- toYaml .Values.runners.resources | nindent 10 }}
{{- if .Values.runners.launcherConfig.enabled }}
volumes:
- name: runners-config
configMap:
name: {{ include "n8n.fullname" . }}-runners-config
{{- end }}
{{- end }} {{- end }}

View File

@ -82,6 +82,33 @@ runners:
authSecretKey: N8N_ENCRYPTION_KEY authSecretKey: N8N_ENCRYPTION_KEY
# Secret containing TELEGRAM_BOT_TOKEN key for expression env access # Secret containing TELEGRAM_BOT_TOKEN key for expression env access
envSecretName: n8n-secrets 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: resources:
requests: requests:
cpu: 100m cpu: 100m