---

apiVersion: "v1"
kind: "Service"
metadata:
  name: "{{ include "solr.service-name" . }}"
  labels:
{{ include "solr.common.labels" . | indent 4 }}
  annotations:
{{ toYaml .Values.service.annotations | indent 4}}
spec:
  type: "{{ .Values.service.type }}"
  ports:
    - port: {{ .Values.port }}
      name: "solr-client"
  selector:
    app.kubernetes.io/name: "{{ include "solr.name" . }}"
    app.kubernetes.io/instance: "{{ .Release.Name }}"
    app.kubernetes.io/component: "server"
