Skip to content

[Question]Config multiple Redis server components managed by only one Redis Sentinel component? #8882

Answered by Y-Rookie
hexknight01 asked this question in Q&A
Discussion options

You must be logged in to vote

@hexknight01
Hello, the requirement of multiple Redis components sharing a single Redis Sentinel component can be satisfied.
If you want to build such a topology structure in a cluster, there are some issues with the cluster YAML you provided above.
You can no longer define the cluster using the topology method. Instead, you need to customize the cluster YAML directly, as shown below (remove cluster.spec.topology field and customize the Redis component names in cluster.spec.componentSpecs[x].name):

apiVersion: apps.kubeblocks.io/v1alpha1
kind: Cluster
metadata:
  name: mycluster
  namespace: redis
spec:
  terminationPolicy: Delete
  clusterDefinitionRef: redis
  componentSpecs:
  - name: …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@hexknight01
Comment options

@hexknight01
Comment options

@Y-Rookie
Comment options

Y-Rookie Feb 7, 2025
Collaborator

@hexknight01
Comment options

Answer selected by hexknight01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants