Skip to content

Commit

Permalink
chore: set redis cluster advertised service value to required (#826)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6588241)
  • Loading branch information
Y-Rookie committed Jul 18, 2024
1 parent 2be56ba commit bd3e5da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions addons/redis/templates/componentdefinition-redis-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ spec:
optional: true
port:
name: redis-advertised
option: Optional
option: Required
## the redis cluster advertised service bus port list for each pod of current shard, the value format is "pod1Svc:nodeport1,pod2Svc:nodeport2,..."
- name: REDIS_CLUSTER_ADVERTISED_BUS_PORT
valueFrom:
Expand All @@ -103,15 +103,15 @@ spec:
optional: true
port:
name: advertised-bus
option: Optional
option: Required
## the redis cluster advertised service name list for each pod of current shard, the value format is "pod1Svc,pod2Svc,..."
- name: REDIS_CLUSTER_ADVERTISED_SVC_NAME
valueFrom:
serviceVarRef:
compDef: {{ include "redis-cluster.componentDefName" . }}
name: redis-advertised
optional: true
host: Optional
host: Required
## the redis cluster advertised service port list for each pod of all shard pods
## the value format is like "shard-98x@redis-shard-98x-redis-advertised-0:32024,redis-shard-98x-redis-advertised-1:31318.shard-cq7@redis-shard-cq7-redis-advertised-0:31828,redis-shard-cq7-redis-advertised-1:32000"
- name: REDIS_CLUSTER_ALL_SHARDS_ADVERTISED_PORT
Expand All @@ -128,7 +128,7 @@ spec:
keyValueDelimiter: "@"
port:
name: redis-advertised
option: Optional
option: Required
## the redis cluster advertised service bus port list for each pod of all shard pods
## the value format is like "shard-98x@redis-shard-98x-redis-advertised-0:30654,redis-shard-98x-redis-advertised-1:30971.shard-cq7@redis-shard-cq7-redis-advertised-0:32555,redis-shard-cq7-redis-advertised-1:32368"
- name: REDIS_CLUSTER_ALL_SHARDS_ADVERTISED_BUS_PORT
Expand All @@ -145,7 +145,7 @@ spec:
keyValueDelimiter: "@"
port:
name: advertised-bus
option: Optional
option: Required
## the redis cluster advertised service name list for each pod of all shard pods.
## the value format is like "shard-98x@redis-shard-98x-redis-advertised-0,redis-shard-98x-redis-advertised-1.shard-cq7@redis-shard-cq7-redis-advertised-0,redis-shard-cq7-redis-advertised-1"
- name: REDIS_CLUSTER_ALL_SHARDS_ADVERTISED_SVC_NAME
Expand All @@ -160,7 +160,7 @@ spec:
flattenFormat:
delimiter: "."
keyValueDelimiter: "@"
host: Optional
host: Required
lifecycleActions:
roleProbe:
builtinHandler: redis
Expand Down
4 changes: 2 additions & 2 deletions addons/redis/templates/componentdefinition-redis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ spec:
optional: true
port:
name: redis-advertised
option: Optional
option: Required
## the redis advertised service name list for each pod, the value format is "pod1Svc,pod2Svc,..."
- name: REDIS_ADVERTISED_SVC_NAME
valueFrom:
serviceVarRef:
compDef: {{ include "redis.componentDefName" . }}
name: redis-advertised
optional: true
host: Optional
host: Required
## the username of redis sentinel for redis connection, it is optional
- name: SENTINEL_USER
valueFrom:
Expand Down

0 comments on commit bd3e5da

Please sign in to comment.