Try another env in n8n
This commit is contained in:
parent
06c28e6c2a
commit
46d537000a
@ -28,6 +28,11 @@ spec:
|
|||||||
- name: http
|
- name: http
|
||||||
containerPort: 5678
|
containerPort: 5678
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
{{- if .Values.runners.enabled }}
|
||||||
|
- name: broker
|
||||||
|
containerPort: {{ .Values.service.brokerPort | default 5679 }}
|
||||||
|
protocol: TCP
|
||||||
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
# N8N configuration from values
|
# N8N configuration from values
|
||||||
- name: N8N_HOST
|
- name: N8N_HOST
|
||||||
@ -76,6 +81,13 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: n8n-secrets
|
name: n8n-secrets
|
||||||
key: TELEGRAM_BOT_TOKEN
|
key: TELEGRAM_BOT_TOKEN
|
||||||
|
{{- if .Values.runners.enabled }}
|
||||||
|
- name: N8N_RUNNERS_AUTH_TOKEN
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .Values.runners.authSecretName }}
|
||||||
|
key: {{ .Values.runners.authSecretKey }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.env }}
|
{{- if .Values.env }}
|
||||||
{{- range $key, $value := .Values.env }}
|
{{- range $key, $value := .Values.env }}
|
||||||
- name: {{ $key }}
|
- name: {{ $key }}
|
||||||
|
|||||||
@ -11,5 +11,11 @@ spec:
|
|||||||
targetPort: http
|
targetPort: http
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: http
|
name: http
|
||||||
|
{{- if .Values.runners.enabled }}
|
||||||
|
- port: {{ .Values.service.brokerPort | default 5679 }}
|
||||||
|
targetPort: broker
|
||||||
|
protocol: TCP
|
||||||
|
name: broker
|
||||||
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
{{- include "n8n.selectorLabels" . | nindent 4 }}
|
{{- include "n8n.selectorLabels" . | nindent 4 }}
|
||||||
|
|||||||
@ -12,6 +12,7 @@ fullnameOverride: ""
|
|||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 80
|
port: 80
|
||||||
|
brokerPort: 5679
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
@ -68,3 +69,23 @@ resources:
|
|||||||
|
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
# workload: general
|
# workload: general
|
||||||
|
|
||||||
|
runners:
|
||||||
|
enabled: false
|
||||||
|
replicaCount: 1
|
||||||
|
image:
|
||||||
|
repository: n8nio/runners
|
||||||
|
tag: latest
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
# Secret containing N8N_RUNNERS_AUTH_TOKEN key
|
||||||
|
authSecretName: n8n-secrets
|
||||||
|
authSecretKey: N8N_ENCRYPTION_KEY
|
||||||
|
# Secret containing TELEGRAM_BOT_TOKEN key for expression env access
|
||||||
|
envSecretName: n8n-secrets
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 128Mi
|
||||||
|
limits:
|
||||||
|
cpu: 500m
|
||||||
|
memory: 512Mi
|
||||||
|
|||||||
@ -46,6 +46,19 @@ resources:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
N8N_BLOCK_ENV_ACCESS_IN_NODE: "false"
|
N8N_BLOCK_ENV_ACCESS_IN_NODE: "false"
|
||||||
|
N8N_RUNNERS_ENABLED: "true"
|
||||||
|
N8N_RUNNERS_MODE: external
|
||||||
|
N8N_RUNNERS_BROKER_LISTEN_ADDRESS: 0.0.0.0
|
||||||
|
|
||||||
|
runners:
|
||||||
|
enabled: true
|
||||||
|
image:
|
||||||
|
repository: n8nio/runners
|
||||||
|
tag: latest
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
authSecretName: n8n-secrets
|
||||||
|
authSecretKey: N8N_ENCRYPTION_KEY
|
||||||
|
envSecretName: n8n-secrets
|
||||||
|
|
||||||
# Sensitive environment variables are injected from the n8n-secrets Secret
|
# Sensitive environment variables are injected from the n8n-secrets Secret
|
||||||
# Expected keys in n8n-secrets:
|
# Expected keys in n8n-secrets:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user