Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
7155146e00
|
|||
3639069556
|
|||
92f8d4442c
|
|||
5500ec6642
|
|||
fba44456e6
|
|||
8bdea5fba6
|
|||
cdbceb1396
|
|||
e7598dc380
|
|||
c2c9255462
|
|||
9ca2cac8b1
|
|||
744613584d
|
|||
36532aef3b
|
@ -6,16 +6,19 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
{{- include "n8n.labels" . | nindent 4 }}
|
{{- include "n8n.labels" . | nindent 4 }}
|
||||||
data:
|
data:
|
||||||
|
N8N_HOST: {{ .Values.config.host | quote }}
|
||||||
|
N8N_PORT: {{ .Values.config.port | quote }}
|
||||||
|
N8N_PROTOCOL: {{ .Values.config.protocol | quote }}
|
||||||
WEBHOOK_URL: {{ .Values.config.webhook_url | quote }}
|
WEBHOOK_URL: {{ .Values.config.webhook_url | quote }}
|
||||||
EXECUTIONS_MODE: "queue"
|
EXECUTIONS_MODE: "queue"
|
||||||
EXECUTIONS_PROCESS: {{ .Values.config.executions.process | quote }}
|
EXECUTIONS_PROCESS: {{ .Values.config.executions.process | quote }}
|
||||||
GENERIC_TIMEZONE: {{ .Values.config.timezone | quote }}
|
GENERIC_TIMEZONE: {{ .Values.config.timezone | quote }}
|
||||||
EXECUTIONS_DATA_PRUNE: {{ .Values.config.executions.data.prune | quote }}
|
EXECUTIONS_DATA_PRUNE: {{ .Values.config.executions.data.prune | quote }}
|
||||||
EXECUTIONS_DATA_MAX_AGE: {{ .Values.config.executions.data.max_age | quote }}
|
EXECUTIONS_DATA_MAX_AGE: {{ .Values.config.executions.data.max_age | quote }}
|
||||||
N8N_DIAGNOSTICS_ENABLED: {{ .Values.config.executions.data.max_age | quote }}
|
N8N_DIAGNOSTICS_ENABLED: {{ .Values.config.diagnostics.enabled | quote }}
|
||||||
NODE_FUNCTION_ALLOW_BUILTIN: {{ .Values.config.node.function.allow.builtin | quote }}
|
NODE_FUNCTION_ALLOW_BUILTIN: {{ .Values.config.node.function.allow.builtin | quote }}
|
||||||
NODE_FUNCTION_ALLOW_EXTERNAL: {{ .Values.config.node.function.allow.external | quote }}
|
NODE_FUNCTION_ALLOW_EXTERNAL: {{ .Values.config.node.function.allow.external | quote }}
|
||||||
QUEUE_BULL_REDIS_HOST: {{ include "n8n.fullname" . }}-redis
|
QUEUE_BULL_REDIS_HOST: {{ include "n8n.fullname" . }}-redis-master
|
||||||
{{- if .Values.config.debug }}
|
{{- if .Values.config.debug }}
|
||||||
N8N_LOG_LEVEL: debug
|
N8N_LOG_LEVEL: debug
|
||||||
{{- end }}
|
{{- end }}
|
@ -4,6 +4,9 @@ metadata:
|
|||||||
name: {{ include "n8n.fullname" . }}
|
name: {{ include "n8n.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "n8n.labels" . | nindent 4 }}
|
{{- include "n8n.labels" . | nindent 4 }}
|
||||||
|
annotations:
|
||||||
|
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
||||||
|
checksum/secret: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@ -11,8 +14,10 @@ spec:
|
|||||||
{{- include "n8n.selectorLabels" . | nindent 6 }}
|
{{- include "n8n.selectorLabels" . | nindent 6 }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
{{- with .Values.n8n.podAnnotations }}
|
|
||||||
annotations:
|
annotations:
|
||||||
|
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
||||||
|
checksum/secret: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
|
||||||
|
{{- with .Values.n8n.podAnnotations }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
@ -36,6 +41,9 @@ spec:
|
|||||||
{{- if .Values.n8n.extraEnvVarsSecret }}
|
{{- if .Values.n8n.extraEnvVarsSecret }}
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ .Values.n8n.extraEnvVarsSecret }}
|
name: {{ .Values.n8n.extraEnvVarsSecret }}
|
||||||
|
{{- else }}
|
||||||
|
- secretRef:
|
||||||
|
name: {{ include "n8n.fullname" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
@ -49,6 +57,12 @@ spec:
|
|||||||
httpGet:
|
httpGet:
|
||||||
path: /healthz
|
path: /healthz
|
||||||
port: http
|
port: http
|
||||||
|
startupProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /healthz
|
||||||
|
port: http
|
||||||
|
failureThreshold: 30
|
||||||
|
periodSeconds: 10
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.n8n.resources | nindent 12 }}
|
{{- toYaml .Values.n8n.resources | nindent 12 }}
|
||||||
{{- with .Values.n8n.nodeSelector }}
|
{{- with .Values.n8n.nodeSelector }}
|
||||||
|
@ -13,8 +13,10 @@ spec:
|
|||||||
{{- include "n8n.selectorLabels" . | nindent 6 }}
|
{{- include "n8n.selectorLabels" . | nindent 6 }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
{{- with .Values.webhook.podAnnotations }}
|
|
||||||
annotations:
|
annotations:
|
||||||
|
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
||||||
|
checksum/secret: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
|
||||||
|
{{- with .Values.webhook.podAnnotations }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
@ -41,6 +43,9 @@ spec:
|
|||||||
{{- if .Values.webhook.extraEnvVarsSecret }}
|
{{- if .Values.webhook.extraEnvVarsSecret }}
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ .Values.webhook.extraEnvVarsSecret }}
|
name: {{ .Values.webhook.extraEnvVarsSecret }}
|
||||||
|
{{- else }}
|
||||||
|
- secretRef:
|
||||||
|
name: {{ include "n8n.fullname" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
|
@ -47,11 +47,11 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
||||||
service:
|
service:
|
||||||
name: {{ $fullName }}
|
name: {{ $fullName }}-webhook
|
||||||
port:
|
port:
|
||||||
number: {{ $svcPort }}
|
number: {{ $svcPort }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
serviceName: {{ $fullName }}
|
serviceName: {{ $fullName }}-webhook
|
||||||
servicePort: {{ $svcPort }}
|
servicePort: {{ $svcPort }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -4,6 +4,9 @@ metadata:
|
|||||||
name: {{ include "n8n.fullname" . }}-worker
|
name: {{ include "n8n.fullname" . }}-worker
|
||||||
labels:
|
labels:
|
||||||
{{- include "n8n.labels" . | nindent 4 }}
|
{{- include "n8n.labels" . | nindent 4 }}
|
||||||
|
annotations:
|
||||||
|
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
||||||
|
checksum/secret: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
|
||||||
spec:
|
spec:
|
||||||
{{- if not .Values.worker.autoscaling.enabled }}
|
{{- if not .Values.worker.autoscaling.enabled }}
|
||||||
replicas: {{ .Values.worker.replicaCount }}
|
replicas: {{ .Values.worker.replicaCount }}
|
||||||
@ -13,8 +16,10 @@ spec:
|
|||||||
{{- include "n8n.selectorLabels" . | nindent 6 }}
|
{{- include "n8n.selectorLabels" . | nindent 6 }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
{{- with .Values.worker.podAnnotations }}
|
|
||||||
annotations:
|
annotations:
|
||||||
|
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
||||||
|
checksum/secret: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
|
||||||
|
{{- with .Values.worker.podAnnotations }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
@ -41,6 +46,9 @@ spec:
|
|||||||
{{- if .Values.worker.extraEnvVarsSecret }}
|
{{- if .Values.worker.extraEnvVarsSecret }}
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ .Values.worker.extraEnvVarsSecret }}
|
name: {{ .Values.worker.extraEnvVarsSecret }}
|
||||||
|
{{- else }}
|
||||||
|
- secretRef:
|
||||||
|
name: {{ include "n8n.fullname" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.worker.resources | nindent 12 }}
|
{{- toYaml .Values.worker.resources | nindent 12 }}
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
config:
|
config:
|
||||||
|
host: ""
|
||||||
|
port: "5678"
|
||||||
|
protocol: http
|
||||||
debug: false
|
debug: false
|
||||||
db_type: postgresdb
|
db_type: postgresdb
|
||||||
postgres:
|
postgres:
|
||||||
|
Reference in New Issue
Block a user