Browse Source

Use redis through mail svc for config job

master
Fábio Kaiser Rauber 3 years ago
parent
commit
cd11ee82c0
  1. 2
      charts/emailleg/v1.4.0/templates/config-job.yaml
  2. 1
      charts/emailleg/v1.4.0/templates/deployment.yaml
  3. 4
      charts/emailleg/v1.4.0/templates/service.yaml

2
charts/emailleg/v1.4.0/templates/config-job.yaml

@ -30,7 +30,7 @@ spec:
- name: MANAGER_PW - name: MANAGER_PW
value: {{ .Values.mail.managerPW }} value: {{ .Values.mail.managerPW }}
- name: RATELIMIT_STORAGE_URL - name: RATELIMIT_STORAGE_URL
value: "redis://mail" value: "redis://{{ .Release.Name }}-mail"
volumeMounts: volumeMounts:
- mountPath: /data - mountPath: /data
subPath: data subPath: data

1
charts/emailleg/v1.4.0/templates/deployment.yaml

@ -24,7 +24,6 @@ spec:
{{- end }} {{- end }}
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
hostname: mail
containers: containers:
- name: imap - name: imap
securityContext: securityContext:

4
charts/emailleg/v1.4.0/templates/service.yaml

@ -23,5 +23,9 @@ spec:
targetPort: smtp targetPort: smtp
protocol: TCP protocol: TCP
name: smtp name: smtp
- port: 6379
targetPort: 6379
protocol: TCP
name: redis
selector: selector:
{{- include "emailleg.selectorLabels" . | nindent 4 }} {{- include "emailleg.selectorLabels" . | nindent 4 }}

Loading…
Cancel
Save