apiVersion: v1 kind: Service metadata: name: {{ include "it-cost-dashboard.fullname" . }}-server labels: {{- include "it-cost-dashboard.componentLabels" (dict "ctx" . "component" "server") | nindent 4 }} spec: type: {{ .Values.server.service.type }} ports: - name: http port: {{ .Values.server.service.port }} targetPort: http protocol: TCP selector: {{- include "it-cost-dashboard.componentSelectorLabels" (dict "ctx" . "component" "server") | nindent 4 }}