From cd11ee82c0044153200d3f008c47d519ff26de05 Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Thu, 10 Feb 2022 09:08:53 -0300 Subject: [PATCH] Use redis through mail svc for config job --- charts/emailleg/v1.4.0/templates/config-job.yaml | 2 +- charts/emailleg/v1.4.0/templates/deployment.yaml | 1 - charts/emailleg/v1.4.0/templates/service.yaml | 4 ++++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/charts/emailleg/v1.4.0/templates/config-job.yaml b/charts/emailleg/v1.4.0/templates/config-job.yaml index 94bb180..38b7cd8 100644 --- a/charts/emailleg/v1.4.0/templates/config-job.yaml +++ b/charts/emailleg/v1.4.0/templates/config-job.yaml @@ -30,7 +30,7 @@ spec: - name: MANAGER_PW value: {{ .Values.mail.managerPW }} - name: RATELIMIT_STORAGE_URL - value: "redis://mail" + value: "redis://{{ .Release.Name }}-mail" volumeMounts: - mountPath: /data subPath: data diff --git a/charts/emailleg/v1.4.0/templates/deployment.yaml b/charts/emailleg/v1.4.0/templates/deployment.yaml index b4ac7c4..53218f1 100755 --- a/charts/emailleg/v1.4.0/templates/deployment.yaml +++ b/charts/emailleg/v1.4.0/templates/deployment.yaml @@ -24,7 +24,6 @@ spec: {{- end }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} - hostname: mail containers: - name: imap securityContext: diff --git a/charts/emailleg/v1.4.0/templates/service.yaml b/charts/emailleg/v1.4.0/templates/service.yaml index e1f41de..42b5927 100755 --- a/charts/emailleg/v1.4.0/templates/service.yaml +++ b/charts/emailleg/v1.4.0/templates/service.yaml @@ -23,5 +23,9 @@ spec: targetPort: smtp protocol: TCP name: smtp + - port: 6379 + targetPort: 6379 + protocol: TCP + name: redis selector: {{- include "emailleg.selectorLabels" . | nindent 4 }}