Re: [kubernetes-users] What is the best way to deploy the Redis cluster

2017-07-23 Thread Rodrigo Campos
You can specify a volume id, but then only have one replica. And, to deploy, then you need downtime. With a PVC and something smarter, you might be able to do some more cool things. But don't underestimate the power of simplicity, if it's enough for your use case :-) On Thursday, July 20, 2017,

Re: [kubernetes-users] What is the best way to deploy the Redis cluster

2017-07-21 Thread Guang Ya Liu
+ Kubernetes dev, hope can get more comments/suggestions here. Thanks, Guangya On Fri, Jul 21, 2017 at 8:42 AM, Guang Ya Liu wrote: > Thanks Rodrigo! > > But even with deployment, I can still have volume mounts in the deployment > to mount to external storage, so even using deployment, I can s

Re: [kubernetes-users] What is the best way to deploy the Redis cluster

2017-07-20 Thread Guang Ya Liu
Thanks Rodrigo! But even with deployment, I can still have volume mounts in the deployment to mount to external storage, so even using deployment, I can still have persistency, right? For statefulset, I can use volumeClaimTemplates to mount PVCs to have persistency, but how an it make upgrade eas

Re: [kubernetes-users] What is the best way to deploy the Redis cluster

2017-07-19 Thread Rodrigo Campos
If you use redis without persistency, probably a deployment is fine. Stateful sets are newer, and might help you (didn't look at the yaml) to manage persistency in redis (and redis upgraded, etc.) More easily On Wednesday, July 19, 2017, Guangya Liu wrote: > Hi, > > I found that there are two w

[kubernetes-users] What is the best way to deploy the Redis cluster

2017-07-19 Thread Guangya Liu
Hi, I found that there are two ways to deploy a Redis cluster, one is in openshift, it is using statefulset https://github.com/openshift/origin/blob/master/examples/statefulsets/redis/redis.yaml And another is in Kuberntes helm charts, it is using Deployment + Service to deploy the Redis clu