Compare commits
13 Commits
Author | SHA1 | Date | |
---|---|---|---|
0fa2dac744
|
|||
3f46388a06
|
|||
3c787efb0a
|
|||
61f92c0075
|
|||
a667ff2f96
|
|||
862cb62d2f
|
|||
2d2f9b48fd
|
|||
42cb58acc5
|
|||
60ed1e8fc5
|
|||
1129489739
|
|||
e673d59fdc
|
|||
921e7948bc
|
|||
285fe88796
|
@ -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
|
||||||
|
6
Chart.lock
Normal file
6
Chart.lock
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
dependencies:
|
||||||
|
- name: redis
|
||||||
|
repository: https://charts.bitnami.com/bitnami
|
||||||
|
version: 16.4.5
|
||||||
|
digest: sha256:bed8b8c341db9fcbd4a81de0b55a47e306ba4217e8cfa300a4ba97befb13e51c
|
||||||
|
generated: "2022-11-15T22:11:41.384512283+03:00"
|
13
Chart.yaml
13
Chart.yaml
@ -3,5 +3,16 @@ name: n8n
|
|||||||
description: A Helm chart for Kubernetes
|
description: A Helm chart for Kubernetes
|
||||||
type: application
|
type: application
|
||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
appVersion: v0.202.1
|
appVersion: 0.202.1
|
||||||
icon: https://github.com/n8n-io/n8n/raw/master/assets/n8n-logo.png
|
icon: https://github.com/n8n-io/n8n/raw/master/assets/n8n-logo.png
|
||||||
|
maintainers:
|
||||||
|
- email: me@grachevko.ru
|
||||||
|
name: Konstantin Grachev
|
||||||
|
sources:
|
||||||
|
- https://git.grachevko.ru/n8n/chart
|
||||||
|
dependencies:
|
||||||
|
- name: redis
|
||||||
|
version: ~16.4.0
|
||||||
|
repository: https://charts.bitnami.com/bitnami
|
||||||
|
alias: redis
|
||||||
|
condition: redis.enabled
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
{{- if not .Values.existingSecret }}
|
{{- if not .Values.existingSecret }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "n8n.fullname" . }}
|
name: {{ include "n8n.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "n8n.labels" . | nindent 4 }}
|
{{- include "n8n.labels" . | nindent 4 }}
|
||||||
type: Opaque
|
|
||||||
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_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 }}
|
||||||
@ -16,4 +15,8 @@ data:
|
|||||||
N8N_DIAGNOSTICS_ENABLED: {{ .Values.config.executions.data.max_age | quote }}
|
N8N_DIAGNOSTICS_ENABLED: {{ .Values.config.executions.data.max_age | 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
|
||||||
|
{{- if .Values.config.debug }}
|
||||||
|
N8N_LOG_LEVEL: debug
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -32,8 +32,7 @@ spec:
|
|||||||
imagePullPolicy: {{ .Values.n8n.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.n8n.image.pullPolicy }}
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
- name: {{ include "n8n.fullname" . }}
|
name: {{ include "n8n.fullname" . }}
|
||||||
envFrom:
|
|
||||||
{{- if .Values.n8n.extraEnvVarsSecret }}
|
{{- if .Values.n8n.extraEnvVarsSecret }}
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ .Values.n8n.extraEnvVarsSecret }}
|
name: {{ .Values.n8n.extraEnvVarsSecret }}
|
||||||
|
@ -32,10 +32,12 @@ 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" . }}
|
||||||
envFrom:
|
|
||||||
{{- if .Values.webhook.extraEnvVarsSecret }}
|
{{- if .Values.webhook.extraEnvVarsSecret }}
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ .Values.webhook.extraEnvVarsSecret }}
|
name: {{ .Values.webhook.extraEnvVarsSecret }}
|
||||||
|
@ -32,10 +32,12 @@ 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" . }}
|
||||||
envFrom:
|
|
||||||
{{- if .Values.worker.extraEnvVarsSecret }}
|
{{- if .Values.worker.extraEnvVarsSecret }}
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ .Values.worker.extraEnvVarsSecret }}
|
name: {{ .Values.worker.extraEnvVarsSecret }}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
config:
|
config:
|
||||||
|
debug: "false"
|
||||||
db_type: postgresdb
|
db_type: postgresdb
|
||||||
postgres:
|
postgres:
|
||||||
database: n8n
|
database: n8n
|
||||||
@ -10,7 +11,6 @@ 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:
|
||||||
@ -24,6 +24,9 @@ config:
|
|||||||
builtin: '*'
|
builtin: '*'
|
||||||
external: '*'
|
external: '*'
|
||||||
|
|
||||||
|
redis:
|
||||||
|
enabled: 'false'
|
||||||
|
|
||||||
existingSecret: ""
|
existingSecret: ""
|
||||||
|
|
||||||
nameOverride: ""
|
nameOverride: ""
|
||||||
|
Reference in New Issue
Block a user