apiVersion: redis.redis.opstreelabs.in/v1beta2
kind: RedisCluster
metadata:
name: redis-cluster
spec:
clusterSize: 3 # cluster node count - 1 shard with 3 nodes
clusterVersion: v6
persistenceEnabled: false
redisLeader:
replicas: 1 # number of nodes that are primary nodes
readinessProbe: # we need it in order for the operator not to crash
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
successThreshold: 1
failureThreshold: 3
livenessProbe: # we need it in order for the operator not to crash
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
successThreshold: 1
failureThreshold: 3
redisFollower:
replicas: 2 # number of nodes that are read nodes
readinessProbe: # we need it in order for the operator not to crash
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
successThreshold: 1
failureThreshold: 3
livenessProbe: # we need it in order for the operator not to crash
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 1
successThreshold: 1
failureThreshold: 3
kubernetesConfig:
image: quay.io/opstree/redis:v6.2.14
imagePullPolicy: IfNotPresent
resources:
limits:
cpu: 1
memory: 2Gi
storage: # we need it in order to keep node.conf at least
volumeClaimTemplate:
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
nodeConfVolume: true
nodeConfVolumeClaimTemplate:
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
What did you expect to see?
1 leader pod and 2 followers are created as expected
cluster state with success
a cluster setup with success
What did you see instead?
I see 1 leader and 2 followers created with success and no errors.
But when
But when checking the cluster I see that the leader node has no knowledge of the follower nodes.
Thanks a lot for building this operator! :) I am facing some issues and I am kindly requesting for your help :)
Does this issue reproduce with the latest release?
yes --> using release 0.17.0
What operating system and processor architecture are you using (
kubectl version
)?kubectl version
OutputWhat did you do?
where redis-cluster-basic.yaml is
What did you expect to see?
What did you see instead?
I see 1 leader and 2 followers created with success and no errors.
But when
But when checking the cluster I see that the leader node has no knowledge of the follower nodes.