Mohammed Naser | 4569e9b | 2024-07-19 01:08:18 -0400 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Service |
| 3 | metadata: |
| 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 }} |
| 14 | spec: |
| 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 }} |