Compare commits
39 Commits
ad9a7b248f
...
0.6.1
Author | SHA1 | Date | |
---|---|---|---|
8640fa3a28
|
|||
6ce3f7a932 | |||
f82dc3e103
|
|||
8fcfc65a21
|
|||
334edcf72b
|
|||
081683a2c1
|
|||
e24a65060b
|
|||
f3efde9263
|
|||
2b2a037305
|
|||
3d41f894c6
|
|||
b66e193714
|
|||
e292f3d434
|
|||
bfbfc4b0d2
|
|||
856d90e88b
|
|||
5a9eb1a6fc
|
|||
4506443e47
|
|||
eb3096689d
|
|||
4fb7dec4c2
|
|||
5aa42df15d
|
|||
9e04dd563f
|
|||
33a4092cdd
|
|||
01534912d3
|
|||
48e01337c9
|
|||
dddfa808e9
|
|||
fe87d7373f
|
|||
de43724541
|
|||
429a04772a
|
|||
5663bb594a
|
|||
90a63653bf
|
|||
3c4842a746
|
|||
b634953e98
|
|||
e57f4ca15d
|
|||
47e32cbc2e
|
|||
ddb4a2eb9b
|
|||
b0162f4908
|
|||
ef8f635aba
|
|||
3497a9537e
|
|||
4e01f912ed
|
|||
bf6002c156
|
39
.drone.yml
39
.drone.yml
@ -9,43 +9,14 @@ trigger:
|
|||||||
- tag
|
- tag
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: lint
|
|
||||||
image: cr.grachevko.ru/docker.io/alpine/helm:latest
|
|
||||||
pull: always
|
|
||||||
commands:
|
|
||||||
- helm lint .
|
|
||||||
|
|
||||||
- name: version
|
|
||||||
image: cr.grachevko.ru/docker.io/mikefarah/yq:latest
|
|
||||||
pull: always
|
|
||||||
user: root
|
|
||||||
commands:
|
|
||||||
- yq -i '.version = "'$DRONE_TAG'"' Chart.yaml
|
|
||||||
- cat Chart.yaml
|
|
||||||
depends_on:
|
|
||||||
- lint
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- tag
|
|
||||||
|
|
||||||
- name: release
|
- name: release
|
||||||
image: cr.grachevko.ru/docker.io/alpine/helm:latest
|
image: cr.grachevko.ru/drone/helm:24
|
||||||
pull: always
|
settings:
|
||||||
commands:
|
tag: ${DRONE_TAG}
|
||||||
- helm repo add bitnami https://charts.bitnami.com/bitnami
|
username:
|
||||||
- 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
|
|
||||||
- helm cm-push . $HELM_REPO_REGISTRY/$HELM_REPO_NAME
|
|
||||||
environment:
|
|
||||||
HELM_REPO_NAME: n8n
|
|
||||||
HELM_REPO_REGISTRY: https://harbor.grachevko.ru/chartrepo
|
|
||||||
HELM_REPO_USERNAME:
|
|
||||||
from_secret: HELM_REPO_USERNAME
|
from_secret: HELM_REPO_USERNAME
|
||||||
HELM_REPO_PASSWORD:
|
password:
|
||||||
from_secret: HELM_REPO_PASSWORD
|
from_secret: HELM_REPO_PASSWORD
|
||||||
depends_on:
|
|
||||||
- version
|
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
29
.gitea/workflows/release.yaml
Normal file
29
.gitea/workflows/release.yaml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
name: Release Chart
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
env:
|
||||||
|
REGISTRY: harbor.grachevko.ru
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: yokawasa/action-setup-kube-tools@v0.9.3
|
||||||
|
with:
|
||||||
|
setup-tools: helm
|
||||||
|
- name: deps and lint
|
||||||
|
run: |
|
||||||
|
helm dependency update
|
||||||
|
helm lint --strict .
|
||||||
|
- name: build
|
||||||
|
run: helm package --version ${{ gitea.ref_name }} .
|
||||||
|
- name: publish
|
||||||
|
run: |
|
||||||
|
echo "${{ secrets.REGISTRY_PASSWORD }}" | helm registry login ${{ env.REGISTRY }} --username "${{ secrets.REGISTRY_USERNAME }}" --password-stdin
|
||||||
|
helm push ./*.tgz oci://harbor.grachevko.ru/${{ gitea.repository }}
|
@ -3,7 +3,7 @@ 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: 0.202.1
|
appVersion: 1.4.0
|
||||||
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:
|
maintainers:
|
||||||
- email: me@grachevko.ru
|
- email: me@grachevko.ru
|
||||||
|
@ -9,6 +9,8 @@ data:
|
|||||||
N8N_HOST: {{ .Values.config.host | quote }}
|
N8N_HOST: {{ .Values.config.host | quote }}
|
||||||
N8N_PORT: {{ .Values.config.port | quote }}
|
N8N_PORT: {{ .Values.config.port | quote }}
|
||||||
N8N_PROTOCOL: {{ .Values.config.protocol | quote }}
|
N8N_PROTOCOL: {{ .Values.config.protocol | quote }}
|
||||||
|
N8N_METRICS: {{ .Values.config.metrics.enabled | quote }}
|
||||||
|
N8N_METRICS_PREFIX: {{ .Values.config.metrics.prefix | 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 }}
|
||||||
|
@ -4,9 +4,6 @@ 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:
|
||||||
|
@ -3,7 +3,7 @@ kind: Deployment
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ include "n8n-webhook.fullname" . }}
|
name: {{ include "n8n-webhook.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "n8n.labels" . | nindent 4 }}
|
{{- include "n8n-webhook.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
{{- if not .Values.webhook.autoscaling.enabled }}
|
{{- if not .Values.webhook.autoscaling.enabled }}
|
||||||
replicas: {{ .Values.webhook.replicaCount }}
|
replicas: {{ .Values.webhook.replicaCount }}
|
||||||
|
@ -4,9 +4,6 @@ metadata:
|
|||||||
name: {{ include "n8n-worker.fullname" . }}
|
name: {{ include "n8n-worker.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "n8n-worker.labels" . | nindent 4 }}
|
{{- include "n8n-worker.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 }}
|
||||||
|
@ -2,14 +2,14 @@
|
|||||||
apiVersion: autoscaling/v2beta1
|
apiVersion: autoscaling/v2beta1
|
||||||
kind: HorizontalPodAutoscaler
|
kind: HorizontalPodAutoscaler
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "n8n.fullname" . }}-worker
|
name: {{ include "n8n-worker.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "n8n.labels" . | nindent 4 }}
|
{{- include "n8n-worker.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
scaleTargetRef:
|
scaleTargetRef:
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
name: {{ include "n8n.fullname" . }}
|
name: {{ include "n8n-worker.fullname" . }}
|
||||||
minReplicas: {{ .Values.worker.autoscaling.minReplicas }}
|
minReplicas: {{ .Values.worker.autoscaling.minReplicas }}
|
||||||
maxReplicas: {{ .Values.worker.autoscaling.maxReplicas }}
|
maxReplicas: {{ .Values.worker.autoscaling.maxReplicas }}
|
||||||
metrics:
|
metrics:
|
||||||
|
@ -26,6 +26,9 @@ config:
|
|||||||
allow:
|
allow:
|
||||||
builtin: '*'
|
builtin: '*'
|
||||||
external: '*'
|
external: '*'
|
||||||
|
metrics:
|
||||||
|
enabled: false
|
||||||
|
prefix: n8n_
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
Reference in New Issue
Block a user