From 6e1bdbec731862e8b70a318b9e612340f94ed734 Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Thu, 10 Feb 2022 08:43:29 -0300 Subject: [PATCH] Hostname should be set by pod --- charts/emailleg/v1.4.0/templates/config-job.yaml | 2 +- charts/emailleg/v1.4.0/templates/deployment.yaml | 2 +- 2 files changed, 2 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 2eaa327..94bb180 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://redis" + value: "redis://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 5ad1a13..b4ac7c4 100755 --- a/charts/emailleg/v1.4.0/templates/deployment.yaml +++ b/charts/emailleg/v1.4.0/templates/deployment.yaml @@ -24,6 +24,7 @@ spec: {{- end }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} + hostname: mail containers: - name: imap securityContext: @@ -163,7 +164,6 @@ spec: - name: redis containerPort: 6379 protocol: TCP - hostname: redis livenessProbe: tcpSocket: port: 6379