# helm_charts_xray-indexer-svc.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ template "xray-indexer.fullname" . }}
  labels:
    app: {{ template "xray.name" . }}
    chart: {{ template "xray.chart" . }}
    component: {{ .Values.indexer.name }}
    heritage: {{ .Release.Service }}
    release: {{ .Release.Name }}
spec:
  type: {{ .Values.indexer.service.type }}
  ports:
  - port: {{ .Values.indexer.internalPort }}
    protocol: TCP
    name: http
    targetPort: {{ .Values.indexer.externalPort }}
  selector:
    app: {{ template "xray.name" . }}
    component: {{ .Values.indexer.name }}
    release: {{ .Release.Name }}