Can you explain what you're trying to achieve? Fundamentally, persistent volumes and replication are at odds with each other. Replication implies fungibility and "all replicas are identical". Persistent volumes implies "the data matters and is potentially different".
Now, I can think of a couple cases where this isn't quite so black-and-white, and we've discussed if/how to implement for those cases. But I am not going to tell you what they are until you explain to me what you're trying to do, lest I muddy the water :) Tim On Thu, Jan 5, 2017 at 4:12 PM, Montassar Dridi <[email protected]> wrote: > thanks for responding > I tried it, still doesn't automatically generate new volumes for the new > pods. PetSets/StatefulSets using "volumeClaimTemplates" for that. Is there > a tool like that for Deployment? > > On Thursday, January 5, 2017 at 6:19:43 PM UTC-5, Vishnu Kannan wrote: >> >> Check out dynamic volumes provisioning here. >> >> On Thu, Jan 5, 2017 at 3:07 PM, Montassar Dridi <[email protected]> >> wrote: >>> >>> Hello!! >>> >>> I'm using Kubernetes deployment with persistent volume to run my >>> application, but when I try to add more replicas or autoscale, all the new >>> pods try to connect to the same volume. >>> How can I simultaneously auto create new volumes for each new pod., like >>> statefulsets(petsets) are able to do it. >>> >>> -- >>> 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 [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at https://groups.google.com/group/kubernetes-users. >>> >>> For more options, visit https://groups.google.com/d/optout. >> >> > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/kubernetes-users. > For more options, visit https://groups.google.com/d/optout. -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.
