Skip to content
Merged
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
14 changes: 0 additions & 14 deletions addons-cluster/redis/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,6 @@ Define redis cluster shardingSpec with ComponentDefinition.
value: "true"
{{- end }}
serviceVersion: {{ .Values.version }}
systemAccounts:
- name: default
{{- if and .Values.redisCluster.customSecretName .Values.redisCluster.customSecretNamespace }}
secretRef:
name: {{ .Values.redisCluster.customSecretName }}
namespace: {{ .Values.redisCluster.customSecretNamespace }}
{{- else }}
passwordConfig:
length: 10
numDigits: 5
numSymbols: 0
letterCase: MixedCases
seed: {{ include "kblib.clusterName" . }}
{{- end }}
resources:
limits:
cpu: {{ .Values.cpu | quote }}
Expand Down
10 changes: 10 additions & 0 deletions addons-cluster/redis/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
{{- include "redis-cluster.clusterCommon" . }}
clusterDef: redis
topology: {{ .Values.mode }}
services:
- componentSelector: shard
name: secondary
serviceName: shard-secondary
roleSelector: secondary
spec:
ports:
- name: redis-cluster
port: 6379
targetPort: redis-cluster
shardings:
{{- include "redis-cluster.shardingSpec" . | indent 2 }}
{{- else }}
Expand Down
3 changes: 3 additions & 0 deletions addons/redis/templates/shardingdefinition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ spec:
maxShards: 64
provisionStrategy: Parallel
updateStrategy: Parallel
systemAccounts:
- name: default
shared: true
lifecycleActions:
shardRemove:
timeoutSeconds: 600
Expand Down
Loading