apiVersion: v1
kind: Service
metadata:
  name: {{ include "cortex.fullname" . }}-memberlist
  namespace: {{ .Release.Namespace }}
  labels:
    {{- include "cortex.labels" . | nindent 4 }}
spec:
  type: ClusterIP
  clusterIP: None
  ports:
    - port: {{ .Values.config.memberlist.bind_port }}
      protocol: TCP
      name: gossip
      targetPort: gossip
  selector:
    {{- include "cortex.selectorLabels" . | nindent 4 }}
    app.kubernetes.io/part-of: memberlist
