move sentinel inside replication

This commit is contained in:
2026-01-08 14:32:08 -06:00
parent 52f339984a
commit 2b1016b45b
5 changed files with 86 additions and 67 deletions

View File

@@ -1,46 +1,46 @@
{{- if .Values.redisSentinel.enabled }}
---
apiVersion: redis.redis.opstreelabs.in/v1beta2
kind: RedisSentinel
metadata:
name: {{ include "redis.sentinelName" . }}
namespace: {{ include "redis.namespace" . }}
labels:
{{- include "redis.labels" . | nindent 4 }}
{{- include "redis.sentinelSelectorLabels" . | nindent 4 }}
spec:
clusterSize: {{ .Values.redisSentinel.clusterSize }}
# {{- if .Values.redisSentinel.enabled }}
# ---
# apiVersion: redis.redis.opstreelabs.in/v1beta2
# kind: RedisSentinel
# metadata:
# name: {{ include "redis.sentinelName" . }}
# namespace: {{ include "redis.namespace" . }}
# labels:
# {{- include "redis.labels" . | nindent 4 }}
# {{- include "redis.sentinelSelectorLabels" . | nindent 4 }}
# spec:
# clusterSize: {{ .Values.redisSentinel.clusterSize }}
podSecurityContext:
{{- with .Values.redisSentinel.podSecurityContext }}
{{- toYaml . | nindent 10 }}
{{ end }}
# podSecurityContext:
# {{- with .Values.redisSentinel.podSecurityContext }}
# {{- toYaml . | nindent 10 }}
# {{ end }}
redisSentinelConfig:
redisReplicationName: {{ include "redis.replicationName" . }}
{{ if .Values.existingSecret.enabled }}
redisReplicationPassword:
secretKeyRef:
name: {{ .Values.existingSecret.name }}
key: {{ .Values.existingSecret.key }}
{{ end }}
# redisSentinelConfig:
# redisReplicationName: {{ include "redis.replicationName" . }}
# {{ if .Values.existingSecret.enabled }}
# redisReplicationPassword:
# secretKeyRef:
# name: {{ .Values.existingSecret.name }}
# key: {{ .Values.existingSecret.key }}
# {{ end }}
kubernetesConfig:
image: "{{ .Values.redisSentinel.image.repository }}:{{ .Values.redisSentinel.image.tag }}"
imagePullPolicy: {{ .Values.redisSentinel.image.pullPolicy }}
resources:
{{- with .Values.redisSentinel.resources }}
{{- toYaml . | nindent 10 }}
{{ end }}
# kubernetesConfig:
# image: "{{ .Values.redisSentinel.image.repository }}:{{ .Values.redisSentinel.image.tag }}"
# imagePullPolicy: {{ .Values.redisSentinel.image.pullPolicy }}
# resources:
# {{- with .Values.redisSentinel.resources }}
# {{- toYaml . | nindent 10 }}
# {{ end }}
{{ if .Values.existingSecret.enabled }}
redisSecret:
name: {{ .Values.existingSecret.name }}
key: {{ .Values.existingSecret.key }}
{{ end }}
# {{ if .Values.existingSecret.enabled }}
# redisSecret:
# name: {{ .Values.existingSecret.name }}
# key: {{ .Values.existingSecret.key }}
# {{ end }}
redisExporter:
enabled: {{ .Values.redisSentinel.redisExporter.enabled }}
image: "{{ .Values.redisSentinel.redisExporter.image.repository }}:{{ .Values.redisSentinel.redisExporter.image.tag }}"
# redisExporter:
# enabled: {{ .Values.redisSentinel.redisExporter.enabled }}
# image: "{{ .Values.redisSentinel.redisExporter.image.repository }}:{{ .Values.redisSentinel.redisExporter.image.tag }}"
{{- end }}
# {{- end }}