Re: [kubernetes-users] Looking for service pool managing solution

2018-05-17 Thread Rodrigo Campos
Not sure it's simpler, nor what you mean with tags. But yeah, you can create pods via the API, count, or use quota limits if you prefer, too. Let's simplify it: try and report back ;) Seriously, I think that would be the easiest and fastest thing to do. On Thursday, May 17, 2018,

Re: [kubernetes-users] Looking for service pool managing solution

2018-05-17 Thread tomasz . szandala
Let's simplify it: can I write 5 different pod yamls, put in it a kind of "tag" and write an API request (request should have "tag" value) that will run ONE random pod from those 5? -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q"

Re: [kubernetes-users] Looking for service pool managing solution

2018-05-17 Thread Rodrigo Campos
On Thursday, May 17, 2018, wrote: > So: > I have 3 types of devices. Each device has assigned container - to access > device you have to connect to container and from there you can use device. What do you mean with device? > Containers have special environment

Re: [kubernetes-users] Looking for service pool managing solution

2018-05-17 Thread tomasz . szandala
So: I have 3 types of devices. Each device has assigned container - to access device you have to connect to container and from there you can use device. Containers have special environment variable describing to which device it is assigned, e.g. B4 - which means: device type B, number 4. Now we

Re: [kubernetes-users] Looking for service pool managing solution

2018-05-17 Thread Rodrigo Campos
Can you please elaborate? I don't follow what you mean with "type A, unique variable: xxx". On Thu, May 17, 2018 at 12:35 PM, wrote: > Hi Rodrigo, > I cannot find an example for one thing: > Let's say I have 3 pods defined: > type: A, unique_variable: 111 > type: A,

Re: [kubernetes-users] Looking for service pool managing solution

2018-05-17 Thread tomasz . szandala
Hi Rodrigo, I cannot find an example for one thing: Let's say I have 3 pods defined: type: A, unique_variable: 111 type: A, unique_variable: 222 type: A, unique_variable: 333 Now: how can I use API or Kubectl to create random pod of type A? Kind regards, Tomasz -- You received this message

Re: [kubernetes-users] Looking for service pool managing solution

2018-05-17 Thread Rodrigo Campos
For what I understand, yes. Go ahead and try it out and read the docs. Each container/pod can specify it's requirements regarding could/mem, and k8s will allocate them while they exist automatically on some node. Or you can even make sure some containers/pods will be run on some type of nodes