6 Commits

Author SHA1 Message Date
00d1b8dcf0 unwrap booleans
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2022-11-15 22:56:27 +03:00
0fa2dac744 add redis.enabled to values.yaml
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2022-11-15 22:51:53 +03:00
3f46388a06 add command for webhook and worker
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2022-11-15 22:46:38 +03:00
3c787efb0a Remove unnecessary node_env 2022-11-15 22:45:02 +03:00
61f92c0075 Add N8N_LOG_LEVEL and config.debug value
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2022-11-15 22:22:59 +03:00
a667ff2f96 Drone: helm repo add bitnami
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2022-11-15 22:19:37 +03:00
5 changed files with 16 additions and 4 deletions

View File

@ -32,6 +32,7 @@ steps:
image: cr.grachevko.ru/docker.io/alpine/helm:latest image: cr.grachevko.ru/docker.io/alpine/helm:latest
pull: always pull: always
commands: commands:
- helm repo add bitnami https://charts.bitnami.com/bitnami
- helm dependency build - helm dependency build
- helm plugin install https://github.com/chartmuseum/helm-push - helm plugin install https://github.com/chartmuseum/helm-push
- helm repo add $HELM_REPO_NAME $HELM_REPO_REGISTRY/$HELM_REPO_NAME --username $HELM_REPO_USERNAME --password $HELM_REPO_PASSWORD - helm repo add $HELM_REPO_NAME $HELM_REPO_REGISTRY/$HELM_REPO_NAME --username $HELM_REPO_USERNAME --password $HELM_REPO_PASSWORD

View File

@ -6,7 +6,6 @@ metadata:
labels: labels:
{{- include "n8n.labels" . | nindent 4 }} {{- include "n8n.labels" . | nindent 4 }}
data: data:
NODE_ENV: {{ .Values.config.node_env | 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 }}
@ -17,4 +16,7 @@ data:
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
{{- if .Values.config.debug }}
N8N_LOG_LEVEL: debug
{{- end }}
{{- end }} {{- end }}

View File

@ -32,6 +32,9 @@ spec:
{{- toYaml .Values.webhook.securityContext | nindent 12 }} {{- toYaml .Values.webhook.securityContext | nindent 12 }}
image: "{{ .Values.webhook.image.registry }}/{{ .Values.webhook.image.repository }}:{{ .Values.webhook.image.tag | default .Chart.AppVersion }}" image: "{{ .Values.webhook.image.registry }}/{{ .Values.webhook.image.repository }}:{{ .Values.webhook.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.webhook.image.pullPolicy }} imagePullPolicy: {{ .Values.webhook.image.pullPolicy }}
command:
- n8n
- webhook
envFrom: envFrom:
- configMapRef: - configMapRef:
name: {{ include "n8n.fullname" . }} name: {{ include "n8n.fullname" . }}

View File

@ -32,6 +32,9 @@ spec:
{{- toYaml .Values.worker.securityContext | nindent 12 }} {{- toYaml .Values.worker.securityContext | nindent 12 }}
image: "{{ .Values.worker.image.registry }}/{{ .Values.worker.image.repository }}:{{ .Values.worker.image.tag | default .Chart.AppVersion }}" image: "{{ .Values.worker.image.registry }}/{{ .Values.worker.image.repository }}:{{ .Values.worker.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.worker.image.pullPolicy }} imagePullPolicy: {{ .Values.worker.image.pullPolicy }}
command:
- n8n
- worker
envFrom: envFrom:
- configMapRef: - configMapRef:
name: {{ include "n8n.fullname" . }} name: {{ include "n8n.fullname" . }}

View File

@ -1,4 +1,5 @@
config: config:
debug: false
db_type: postgresdb db_type: postgresdb
postgres: postgres:
database: n8n database: n8n
@ -10,20 +11,22 @@ config:
encryption_key: "" encryption_key: ""
timezone: Europe/Moscow timezone: Europe/Moscow
webhook_url: "" webhook_url: ""
node_env: production
executions: executions:
process: main process: main
data: data:
prune: 'true' prune: true
max_age: 8760 max_age: 8760
diagnostics: diagnostics:
enabled: 'false' enabled: false
node: node:
function: function:
allow: allow:
builtin: '*' builtin: '*'
external: '*' external: '*'
redis:
enabled: false
existingSecret: "" existingSecret: ""
nameOverride: "" nameOverride: ""