Re: [kubernetes-users] Autoscale volume and pods simultaneously

2017-01-10 Thread 'Filip Grzadkowski' via Kubernetes user discussion and Q
-- Filip On Fri, Jan 6, 2017 at 5:35 PM, 'Tim Hockin' via Kubernetes user discussion and Q wrote: > Ahh, you want to start with a clone of the data, not an empty volume. > Why not use something like git-sync to pull the data down from some > canonical source?

Re: [kubernetes-users] Autoscale volume and pods simultaneously

2017-01-06 Thread 'Tim Hockin' via Kubernetes user discussion and Q
Ahh, you want to start with a clone of the data, not an empty volume. Why not use something like git-sync to pull the data down from some canonical source? On Thu, Jan 5, 2017 at 11:33 PM, Montassar Dridi wrote: > each new pod gets it's own persistent volume copy/clone

Re: [kubernetes-users] Autoscale volume and pods simultaneously

2017-01-06 Thread Montassar Dridi
thank you for your help, appreciate it, I'm gonna use statefulsets On Friday, January 6, 2017 at 1:09:56 AM UTC-5, Tim Hockin wrote: > > On Thu, Jan 5, 2017 at 9:52 PM, Montassar Dridi > wrote: > > > > > > On Thursday, January 5, 2017 at 11:17:26 PM UTC-5, Tim Hockin

Re: [kubernetes-users] Autoscale volume and pods simultaneously

2017-01-05 Thread 'Tim Hockin' via Kubernetes user discussion and Q
On Thu, Jan 5, 2017 at 9:52 PM, Montassar Dridi wrote: > > > On Thursday, January 5, 2017 at 11:17:26 PM UTC-5, Tim Hockin wrote: >> >> On Thu, Jan 5, 2017 at 5:24 PM, Montassar Dridi >> wrote: >> > Hi Tim, >> > >> > I'm trying to do something

Re: [kubernetes-users] Autoscale volume and pods simultaneously

2017-01-05 Thread Montassar Dridi
On Thursday, January 5, 2017 at 11:17:26 PM UTC-5, Tim Hockin wrote: > > On Thu, Jan 5, 2017 at 5:24 PM, Montassar Dridi > wrote: > > Hi Tim, > > > > I'm trying to do something like this example > > >

Re: [kubernetes-users] Autoscale volume and pods simultaneously

2017-01-05 Thread 'Tim Hockin' via Kubernetes user discussion and Q
On Thu, Jan 5, 2017 at 5:24 PM, Montassar Dridi wrote: > Hi Tim, > > I'm trying to do something like this example > https://github.com/kubernetes/kubernetes/tree/master/examples/mysql-wordpress-pd > I have a java web application and MYSQL database running within

Re: [kubernetes-users] Autoscale volume and pods simultaneously

2017-01-05 Thread Montassar Dridi
Hi Tim, I'm trying to do something like this example https://github.com/kubernetes/kubernetes/tree/master/examples/mysql-wordpress-pd I have a java web application and MYSQL database running within Kubernetes connected to each other, used "kubernetes Deployment" as the example above. When I try

Re: [kubernetes-users] Autoscale volume and pods simultaneously

2017-01-05 Thread 'Tim Hockin' via Kubernetes user discussion and Q
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

Re: [kubernetes-users] Autoscale volume and pods simultaneously

2017-01-05 Thread Montassar Dridi
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

Re: [kubernetes-users] Autoscale volume and pods simultaneously

2017-01-05 Thread 'Vishnu Kannan' via Kubernetes user discussion and Q
Check out dynamic volumes provisioning here . On Thu, Jan 5, 2017 at 3:07 PM, Montassar Dridi wrote: > Hello!! > > I'm using Kubernetes deployment with persistent volume to run my

[kubernetes-users] Autoscale volume and pods simultaneously

2017-01-05 Thread Montassar Dridi
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