Browse Source

Hostname should be set by pod

master
Fábio Kaiser Rauber 3 years ago
parent
commit
6e1bdbec73
  1. 2
      charts/emailleg/v1.4.0/templates/config-job.yaml
  2. 2
      charts/emailleg/v1.4.0/templates/deployment.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://redis" value: "redis://mail"
volumeMounts: volumeMounts:
- mountPath: /data - mountPath: /data
subPath: data subPath: data

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

@ -24,6 +24,7 @@ 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:
@ -163,7 +164,6 @@ spec:
- name: redis - name: redis
containerPort: 6379 containerPort: 6379
protocol: TCP protocol: TCP
hostname: redis
livenessProbe: livenessProbe:
tcpSocket: tcpSocket:
port: 6379 port: 6379

Loading…
Cancel
Save