apiVersion: v1 kind: Service metadata: name: {{include "datatracker.fullname" .}} labels: {{- include "datatracker.labels" . | nindent 4 }} {{- with .Values.service.annotations }} annotations: {{- range $key, $value := . }} {{ $key }}: {{ $value | quote }} {{- end }} {{- end }} spec: type: {{.Values.service.type}} ports: - port: {{ default "80" .Values.service.port}} targetPort: http protocol: TCP name: http selector: {{- include "datatracker.selectorLabels" . | nindent 4}}