25 lines
749 B
YAML
25 lines
749 B
YAML
{{/* Any node is a valid startup node. Cluster-aware clients fetch the slot map
|
|
and then connect directly to the stable per-member hostnames Redis advertises. */}}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "redis-cluster.fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "redis-cluster.labels" . | nindent 4 }}
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
{{- include "redis-cluster.selectorLabels" . | nindent 4 }}
|
|
ports:
|
|
- name: tcp-redis
|
|
port: {{ .Values.redis.port }}
|
|
targetPort: tcp-redis
|
|
appProtocol: redis
|
|
{{- if .Values.metrics.enabled }}
|
|
- name: http-metrics
|
|
port: {{ .Values.metrics.port }}
|
|
targetPort: http-metrics
|
|
appProtocol: http
|
|
{{- end }}
|