From 83249ab854ae66e377fbbb778da15702d4bef5f2 Mon Sep 17 00:00:00 2001 From: a5r0n Date: Mon, 21 Nov 2022 04:20:39 +0200 Subject: [PATCH] fix: ingress class name & deployment initial delay for healthcheck --- n8n/templates/deployment.yaml | 6 +++++- n8n/templates/ingress.yaml | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/n8n/templates/deployment.yaml b/n8n/templates/deployment.yaml index ceef6d4..6086573 100644 --- a/n8n/templates/deployment.yaml +++ b/n8n/templates/deployment.yaml @@ -45,10 +45,12 @@ spec: httpGet: path: /healthz port: http + initialDelaySeconds: 30 readinessProbe: httpGet: path: /healthz port: http + initialDelaySeconds: 30 resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.nodeSelector }} @@ -110,10 +112,12 @@ spec: httpGet: path: /healthz port: healthz + initialDelaySeconds: 30 readinessProbe: httpGet: path: /healthz port: healthz + initialDelaySeconds: 30 imagePullPolicy: {{ .Values.image.pullPolicy }} envFrom: - configMapRef: @@ -202,4 +206,4 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} ---- \ No newline at end of file +--- diff --git a/n8n/templates/ingress.yaml b/n8n/templates/ingress.yaml index 374d871..fadebcc 100644 --- a/n8n/templates/ingress.yaml +++ b/n8n/templates/ingress.yaml @@ -12,6 +12,9 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} spec: + {{- if .Values.ingress.className }} + ingressClassName: {{ .Values.ingress.className }} + {{- end }} {{- if .Values.ingress.tls }} tls: {{- range .Values.ingress.tls }}