apiVersion: v1
kind: Service
metadata:
  name: "{{ template "rethinkdb.fullname" . }}-admin"
  labels:
    app: "{{ template "rethinkdb.name" . }}-admin"
    chart: {{ template "rethinkdb.chart" . }}
    heritage: {{ .Release.Service | quote }}
    release: {{ .Release.Name | quote }}
spec:
  clusterIP: None
  ports:
    - port: {{ .Values.ports.admin }}
      targetPort: admin
  selector:
    app: "{{ template "rethinkdb.name" . }}-proxy"
    release: {{ .Release.Name | quote }}
