Compare commits
25 Commits
0.0.1
...
cdbceb1396
Author | SHA1 | Date | |
---|---|---|---|
cdbceb1396
|
|||
e7598dc380
|
|||
c2c9255462
|
|||
9ca2cac8b1
|
|||
744613584d
|
|||
36532aef3b
|
|||
a140216365
|
|||
623fefe1d3
|
|||
00f087b635
|
|||
5306094c0c
|
|||
00d1b8dcf0
|
|||
0fa2dac744
|
|||
3f46388a06
|
|||
3c787efb0a
|
|||
61f92c0075
|
|||
a667ff2f96
|
|||
862cb62d2f
|
|||
2d2f9b48fd
|
|||
42cb58acc5
|
|||
60ed1e8fc5
|
|||
1129489739
|
|||
e673d59fdc
|
|||
921e7948bc
|
|||
285fe88796
|
|||
0d0d8836bf
|
@ -32,6 +32,7 @@ steps:
|
||||
image: cr.grachevko.ru/docker.io/alpine/helm:latest
|
||||
pull: always
|
||||
commands:
|
||||
- helm repo add bitnami https://charts.bitnami.com/bitnami
|
||||
- helm dependency build
|
||||
- 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
|
||||
|
@ -21,4 +21,3 @@
|
||||
.idea/
|
||||
*.tmproj
|
||||
.vscode/
|
||||
*.tgz
|
||||
|
6
Chart.lock
Normal file
6
Chart.lock
Normal file
@ -0,0 +1,6 @@
|
||||
dependencies:
|
||||
- name: redis
|
||||
repository: https://charts.bitnami.com/bitnami
|
||||
version: 17.3.11
|
||||
digest: sha256:40f0dad12458b527f362dd152bbeb042a415b0bb48376357901d2062489b0650
|
||||
generated: "2022-11-16T12:29:15.310122534+03:00"
|
12
Chart.yaml
12
Chart.yaml
@ -3,5 +3,15 @@ name: n8n
|
||||
description: A Helm chart for Kubernetes
|
||||
type: application
|
||||
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
|
||||
maintainers:
|
||||
- email: me@grachevko.ru
|
||||
name: Konstantin Grachev
|
||||
sources:
|
||||
- https://git.grachevko.ru/n8n/chart
|
||||
dependencies:
|
||||
- name: redis
|
||||
version: ^17
|
||||
repository: https://charts.bitnami.com/bitnami
|
||||
condition: redis.enabled
|
||||
|
@ -1,19 +1,24 @@
|
||||
{{- if not .Values.existingSecret }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ include "n8n.fullname" . }}
|
||||
labels:
|
||||
{{- include "n8n.labels" . | nindent 4 }}
|
||||
type: Opaque
|
||||
data:
|
||||
NODE_ENV: {{ .Values.config.node_env | quote }}
|
||||
N8N_HOST: {{ .Values.config.host | quote }}
|
||||
N8N_PORT: {{ .Values.config.port | quote }}
|
||||
WEBHOOK_URL: {{ .Values.config.webhook_url | quote }}
|
||||
EXECUTIONS_MODE: "queue"
|
||||
EXECUTIONS_PROCESS: {{ .Values.config.executions.process | quote }}
|
||||
GENERIC_TIMEZONE: {{ .Values.config.timezone | quote }}
|
||||
EXECUTIONS_DATA_PRUNE: {{ .Values.config.executions.data.prune | 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_EXTERNAL: {{ .Values.config.node.function.allow.external | quote }}
|
||||
QUEUE_BULL_REDIS_HOST: {{ include "n8n.fullname" . }}-redis-master
|
||||
{{- if .Values.config.debug }}
|
||||
N8N_LOG_LEVEL: debug
|
||||
{{- end }}
|
||||
{{- end }}
|
@ -4,6 +4,9 @@ metadata:
|
||||
name: {{ include "n8n.fullname" . }}
|
||||
labels:
|
||||
{{- 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:
|
||||
replicas: 1
|
||||
selector:
|
||||
@ -32,8 +35,7 @@ spec:
|
||||
imagePullPolicy: {{ .Values.n8n.image.pullPolicy }}
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
- name: {{ include "n8n.fullname" . }}
|
||||
envFrom:
|
||||
name: {{ include "n8n.fullname" . }}
|
||||
{{- if .Values.n8n.extraEnvVarsSecret }}
|
||||
- secretRef:
|
||||
name: {{ .Values.n8n.extraEnvVarsSecret }}
|
||||
@ -50,6 +52,12 @@ spec:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: http
|
||||
startupProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: http
|
||||
failureThreshold: 30
|
||||
periodSeconds: 10
|
||||
resources:
|
||||
{{- toYaml .Values.n8n.resources | nindent 12 }}
|
||||
{{- with .Values.n8n.nodeSelector }}
|
||||
|
@ -12,7 +12,6 @@ data:
|
||||
{{- else }}
|
||||
N8N_ENCRYPTION_KEY: {{ randAlphaNum 10 | b64enc | quote }}
|
||||
{{- end }}
|
||||
|
||||
{{- if .Values.config.db_type }}
|
||||
DB_TYPE: {{ .Values.config.db_type | b64enc | quote }}
|
||||
{{- end }}
|
||||
|
@ -4,6 +4,9 @@ metadata:
|
||||
name: {{ include "n8n.fullname" . }}-webhook
|
||||
labels:
|
||||
{{- 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:
|
||||
{{- if not .Values.webhook.autoscaling.enabled }}
|
||||
replicas: {{ .Values.webhook.replicaCount }}
|
||||
@ -32,10 +35,12 @@ spec:
|
||||
{{- toYaml .Values.webhook.securityContext | nindent 12 }}
|
||||
image: "{{ .Values.webhook.image.registry }}/{{ .Values.webhook.image.repository }}:{{ .Values.webhook.image.tag | default .Chart.AppVersion }}"
|
||||
imagePullPolicy: {{ .Values.webhook.image.pullPolicy }}
|
||||
command:
|
||||
- n8n
|
||||
- webhook
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
- name: {{ include "n8n.fullname" . }}
|
||||
envFrom:
|
||||
name: {{ include "n8n.fullname" . }}
|
||||
{{- if .Values.webhook.extraEnvVarsSecret }}
|
||||
- secretRef:
|
||||
name: {{ .Values.webhook.extraEnvVarsSecret }}
|
||||
|
@ -4,6 +4,9 @@ metadata:
|
||||
name: {{ include "n8n.fullname" . }}-worker
|
||||
labels:
|
||||
{{- 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:
|
||||
{{- if not .Values.worker.autoscaling.enabled }}
|
||||
replicas: {{ .Values.worker.replicaCount }}
|
||||
@ -32,10 +35,12 @@ spec:
|
||||
{{- toYaml .Values.worker.securityContext | nindent 12 }}
|
||||
image: "{{ .Values.worker.image.registry }}/{{ .Values.worker.image.repository }}:{{ .Values.worker.image.tag | default .Chart.AppVersion }}"
|
||||
imagePullPolicy: {{ .Values.worker.image.pullPolicy }}
|
||||
command:
|
||||
- n8n
|
||||
- worker
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
- name: {{ include "n8n.fullname" . }}
|
||||
envFrom:
|
||||
name: {{ include "n8n.fullname" . }}
|
||||
{{- if .Values.worker.extraEnvVarsSecret }}
|
||||
- secretRef:
|
||||
name: {{ .Values.worker.extraEnvVarsSecret }}
|
||||
|
14
values.yaml
14
values.yaml
@ -1,4 +1,7 @@
|
||||
config:
|
||||
host: ""
|
||||
port: "5678"
|
||||
debug: false
|
||||
db_type: postgresdb
|
||||
postgres:
|
||||
database: n8n
|
||||
@ -10,20 +13,25 @@ config:
|
||||
encryption_key: ""
|
||||
timezone: Europe/Moscow
|
||||
webhook_url: ""
|
||||
node_env: production
|
||||
executions:
|
||||
process: main
|
||||
data:
|
||||
prune: 'true'
|
||||
prune: true
|
||||
max_age: 8760
|
||||
diagnostics:
|
||||
enabled: 'false'
|
||||
enabled: false
|
||||
node:
|
||||
function:
|
||||
allow:
|
||||
builtin: '*'
|
||||
external: '*'
|
||||
|
||||
redis:
|
||||
enabled: false
|
||||
architecture: standalone
|
||||
auth:
|
||||
enabled: false
|
||||
|
||||
existingSecret: ""
|
||||
|
||||
nameOverride: ""
|
||||
|
Reference in New Issue
Block a user