Redis cluster using statefulset

480 views
Skip to first unread message
Assigned to sbsh...@gmail.com by me

banjara

unread,
Jul 12, 2017, 9:42:33 AM7/12/17
to kubernet...@googlegroups.com
Hi
I am trying to setup redis cluster on Kubernetes using statefulset(my 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 address, they are not able to form cluster again.

Other option I am considering is using services with static IP(clusterIP) over individual redis instance deployment/replication-controller but the same problem exists here also, redis cluster is formed using IP of Pods and not services. This approach is suggested by Kelsey Hightower here. Anotehr downside of this approch is lot more manual management for scaling and rolling upgrades.

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


Thanks.

ricl...@gmail.com

unread,
Sep 14, 2017, 4:17:53 AM9/14/17
to Kubernetes user discussion and Q&A
在 2017年7月12日星期三 UTC+8下午9:42:33,banjara写道:
I meet the same problem and try to solve this problem by change redis's code ;-(
Reply all
Reply to author
Forward
0 new messages