apiVersion: v1 kind: Service metadata: name: {{ include "listory.fullname" . }} labels: {{- include "listory.labels" . | nindent 4 }} spec: type: {{ .Values.service.type }} ports: - port: {{ .Values.service.port }} targetPort: http protocol: TCP name: http {{- if .Values.opentelemetry.metrics.enabled }} - port: {{ .Values.opentelemetry.metrics.port }} targetPort: metrics protocol: TCP name: metrics {{- end }} selector: {{- include "listory.selectorLabels" . | nindent 4 }}