From 93b29baefd6fe719606555d8c262c02bb981fcf6 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Fri, 12 Dec 2025 18:38:42 -0600 Subject: [PATCH] add sentinel --- .../templates/redis-replication.yaml | 8 +-- .../templates/redis-sentinel.yaml | 55 +++++++++++++++++++ 2 files changed, 59 insertions(+), 4 deletions(-) create mode 100644 clusters/cl01tl/helm/matrix-synapse/templates/redis-sentinel.yaml diff --git a/clusters/cl01tl/helm/matrix-synapse/templates/redis-replication.yaml b/clusters/cl01tl/helm/matrix-synapse/templates/redis-replication.yaml index 1f85cd571..c643dda33 100644 --- a/clusters/cl01tl/helm/matrix-synapse/templates/redis-replication.yaml +++ b/clusters/cl01tl/helm/matrix-synapse/templates/redis-replication.yaml @@ -13,7 +13,7 @@ spec: runAsUser: 1000 fsGroup: 1000 kubernetesConfig: - image: quay.io/opstree/redis:v8.0.3 + image: quay.io/opstree/redis:v8.4.0 imagePullPolicy: IfNotPresent redisSecret: name: matrix-synapse-redis-secret @@ -32,7 +32,7 @@ spec: storage: 1Gi redisExporter: enabled: true - image: quay.io/opstree/redis-exporter:v1.48.0 + image: quay.io/opstree/redis-exporter:v1.80.1 --- apiVersion: redis.redis.opstreelabs.in/v1beta2 @@ -50,7 +50,7 @@ spec: runAsUser: 1000 fsGroup: 1000 kubernetesConfig: - image: quay.io/opstree/redis:v8.0.3 + image: quay.io/opstree/redis:v8.4.0 imagePullPolicy: IfNotPresent resources: requests: @@ -66,4 +66,4 @@ spec: storage: 1Gi redisExporter: enabled: true - image: quay.io/opstree/redis-exporter:v1.48.0 + image: quay.io/opstree/redis-exporter:v1.80.1 diff --git a/clusters/cl01tl/helm/matrix-synapse/templates/redis-sentinel.yaml b/clusters/cl01tl/helm/matrix-synapse/templates/redis-sentinel.yaml new file mode 100644 index 000000000..78f5876ac --- /dev/null +++ b/clusters/cl01tl/helm/matrix-synapse/templates/redis-sentinel.yaml @@ -0,0 +1,55 @@ +apiVersion: redis.redis.opstreelabs.in/v1beta2 +kind: RedisSentinel +metadata: + name: redis-sentinel-matrix-synapse + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: redis-sentinel-matrix-synapse + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/part-of: {{ .Release.Name }} +spec: + clusterSize: 3 + podSecurityContext: + runAsUser: 1000 + fsGroup: 1000 + redisSentinelConfig: + redisReplicationName: redis-replication-matrix-synapse + redisReplicationPassword: + secretKeyRef: + name: matrix-synapse-redis-secret + key: password + kubernetesConfig: + image: quay.io/opstree/redis-sentinel:v8.4.0 + imagePullPolicy: IfNotPresent + redisSecret: + name: matrix-synapse-redis-secret + key: password + resources: + requests: + cpu: 10m + memory: 128Mi + +--- +apiVersion: redis.redis.opstreelabs.in/v1beta2 +kind: RedisSentinel +metadata: + name: redis-sentinel-hookshot + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: redis-sentinel-hookshot + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/part-of: {{ .Release.Name }} +spec: + clusterSize: 3 + podSecurityContext: + runAsUser: 1000 + fsGroup: 1000 + redisSentinelConfig: + redisReplicationName: redis-replication-hookshot + kubernetesConfig: + image: quay.io/opstree/redis-sentinel:v8.4.0 + imagePullPolicy: IfNotPresent + resources: + requests: + cpu: 10m + memory: 128Mi