blob: 43a3e85da6c878197e1e9bd7fecd24fb1ad5046e [file] [log] [blame]
Mohammed Naser4569e9b2024-07-19 01:08:18 -04001apiVersion: v1
2kind: Service
3metadata:
4 name: {{ include "goldpinger.fullname" . }}
5 labels:
6 {{- include "goldpinger.labels" . | nindent 4 }}
7{{- with .Values.service.labels }}
8{{ toYaml . | indent 4 }}
9{{- end }}
10{{- with .Values.service.annotations }}
11 annotations:
12{{ toYaml . | indent 4 }}
13{{- end }}
14spec:
15 type: {{ .Values.service.type }}
16 ports:
17 - port: {{ .Values.service.port }}
18 targetPort: {{ .Values.goldpinger.port }}
19 protocol: TCP
20 name: http
21 selector:
22 {{- include "goldpinger.selectorLabels" . | nindent 4 }}
23 {{- if .Values.service.loadBalancerSourceRanges }}
24 loadBalancerSourceRanges:
25 {{- toYaml .Values.service.loadBalancerSourceRanges | nindent 4 }}
26 {{- end }}