Hi
I am trying to setup redis cluster on Kubernetes using statefulset(my 
statefulset yaml 
<https://github.com/zuxqoj/kubernetes-redis-cluster/blob/master/statefulset/redis-statefulset.yaml>
).
One of my requirements is that my redis cluster should be kubernetes 
cluster restart(due to issues like power failure) resilient.
On reboot, new set of IP addresses are assigned to redis pods and since 
redis instances communicates on IP 
<https://groups.google.com/forum/#!topic/redis-db/Dm9Y3K_-d6g> address, 
they are not able to form cluster again.

Is statefulset right choice for such usecases?
Is there a way by which I can assign static IP to pods in statefulset?

Other option I am considering is using services with static IP(clusterIP) 
over individual redis instance deployment/replication-controller. This is 
suggested by Kelsey Hightower here 
<https://github.com/kelseyhightower/kubernetes-redis-cluster>. Downside of 
this approch is manual management for scaling and rolling upgrades.


Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to