Skip to content

Commit c1604ee

Browse files
leleobhzdjjudas21
authored andcommitted
Added service annotations
This is sometimes required by loadbalancers like PureLB Signed-off-by: Leonardo Amaral <contato@leonardoamaral.com.br>
1 parent 92b7708 commit c1604ee

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

charts/smtp-relay/templates/service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ metadata:
44
name: {{ include "smtp-relay.name" . }}
55
labels:
66
{{- include "smtp-relay.labels" . | nindent 4 }}
7+
{{- if .Values.service.annotations }}
8+
annotations:
9+
{{ toYaml .Values.service.annotations | indent 4 }}
10+
{{- end }}
711
spec:
812
type: {{ .Values.service.type }}
913
{{- if .Values.service.loadBalancerIP }}

charts/smtp-relay/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ securityContext: {}
7373
# @default -- See values.yaml
7474
service:
7575
type: ClusterIP
76+
annotations: {}
7677
loadBalancerIP: ""
7778
port: 25
7879

0 commit comments

Comments
 (0)