apiVersion: v1
kind: Service
metadata:
  name: {{ include "druid.overlord.fullname" . }}
  labels:
    app: {{ include "druid.name" . }}
    chart: {{ include "druid.chart" . }}
    component: {{ .Values.overlord.name }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
spec:
  type: {{ .Values.overlord.serviceType }}
  ports:
    - port: {{ .Values.overlord.port }}
      targetPort: http
      protocol: TCP
      name: http
  selector:
    app: {{ include "druid.name" . }}
    release: {{ .Release.Name }}
    component: {{ .Values.overlord.name }}
