在 2017年7月12日星期三 UTC+8下午9:42:33,banjara写道: > 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.
I meet the same problem and try to solve this problem by change redis's code ;-( -- 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.