First Commit

This commit is contained in:
Corrado Mulas
2026-07-23 12:09:41 +02:00
parent 22a5ad862b
commit a407903a8d
24 changed files with 3163 additions and 2 deletions

24
templates/service.yaml Normal file
View File

@@ -0,0 +1,24 @@
{{/* 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 }}