Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/matrix-stack/templates/redis/redis_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ metadata:
namespace: {{ $.Release.Namespace }}
spec:
type: ClusterIP
clusterIP: None
ipFamilyPolicy: PreferDualStack
ports:
- port: 6379
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SPDX-License-Identifier: AGPL-3.0-only
{{- if (include "element-io.redis.internalRedisEnabled" (dict "root" $)) -}}
{{- with $.Values.redis -}}
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
{{- with .annotations }}
annotations:
Expand All @@ -19,7 +19,7 @@ metadata:
name: {{ $.Release.Name }}-redis
namespace: {{ $.Release.Namespace }}
spec:
{{ include "element-io.ess-library.workloads.commonSpec" (dict "root" $ "context" (dict "nameSuffix" "redis" "kind" "Deployment" "componentValues" .)) | nindent 2 }}
{{ include "element-io.ess-library.workloads.commonSpec" (dict "root" $ "context" (dict "nameSuffix" "redis" "kind" "StatefulSet" "componentValues" .)) | nindent 2 }}
template:
metadata:
labels:
Expand All @@ -30,7 +30,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- include "element-io.ess-library.pods.commonSpec" (dict "root" $ "context" (dict "componentValues" . "instanceSuffix" "redis" "kind" "Deployment")) | nindent 6 }}
{{- include "element-io.ess-library.pods.commonSpec" (dict "root" $ "context" (dict "componentValues" . "instanceSuffix" "redis" "kind" "StatefulSet")) | nindent 6 }}
{{- with .extraInitContainers }}
initContainers:
{{- toYaml . | nindent 6 }}
Expand Down
1 change: 1 addition & 0 deletions newsfragments/1368.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Change Redis from a `Deployment` to a `StatefulSet`.
Loading