apiVersion: v1
kind: Service
metadata:
  name: {{ template "redis-ha.fullname" . }}-sentinel
  labels:
    name: {{ template "redis-ha.name" . }}-sentinel-svc
    role: service
{{ include "labels.standard" . | indent 4 }}
spec:
  ports:
    - port: 26379
      targetPort: 26379
  selector:
    app: {{ template "redis-ha.name" . }}
    release: "{{ .Release.Name }}"
    redis-role: "sentinel"
