---

apiVersion: v1
kind: Service
metadata:
  name: {{ template "hubot.fullname" . }}
  labels:
{{ include "hubot.labels" . | indent 4 }}
{{- if .Values.extraLabels }}
{{ toYaml .Values.extraLabels | indent 4 }}
{{- end }}
spec:
  type: {{ .Values.service.type }}
  ports:
    - name: http
      port: {{ .Values.service.port }}
      targetPort: http
      protocol: TCP
  selector:
    app.kubernetes.io/name: {{ include "hubot.name" . }}
    app.kubernetes.io/instance: {{ .Release.Name }}
