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,  wrote:

> 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" 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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" 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.


Re: [kubernetes-users] SecretList's items don't have "kind" or "apiVersion"

2018-05-17 Thread 'Daniel Smith' via Kubernetes user discussion and Q
It was purposefully that way, but users typically have the expectation you
have, and there's actually a PR out (merged?) from deads2k@ fixing this.

On Thu, May 17, 2018 at 3:15 PM Torsten Bronger <
bron...@physik.rwth-aachen.de> wrote:

> Hallöchen!
>
> An HTTP get to the endpoint /secrets/ against my Kubernetes 1.10
> API server yields:
>
>
> kind: SecretList
> apiVersion: v1
> metadata: {resourceVersion: '1143', selfLink:
> /api/v1/namespaces/default/secrets}
> items:
> - data: ***
>   metadata:
> creationTimestamp: '2018-05-17T21:30:58Z'
> labels: {uses-certbot: 'True'}
> name: certificates-29c2fa1
> namespace: default
> resourceVersion: '534'
> selfLink: /api/v1/namespaces/default/secrets/certificates-29c2fa1
> uid: 96f5c905-5a19-11e8-b931-005056be54be
>   type: Opaque
>
>
> (It is returned as JSON; I converted it to YAML.)  As you can see,
> "kind" and "apiVersion" is missing in the first and only item.  If
> you try to feed this into kubectl 1.10, it aborts with a validation
> error.  As a workaround, I add those two fields by myself but I
> wonder why the API's output is not accepted by kubectl in its
> pristine form.
>
> Is this intentional or a bug?
>
> Tschö,
> Torsten.
>
> --
> Torsten Bronger
>
> --
> You received this message because you are subscribed to the Google Groups
> "Kubernetes user discussion and Q" 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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" 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.


[kubernetes-users] SecretList's items don't have "kind" or "apiVersion"

2018-05-17 Thread Torsten Bronger
Hallöchen!

An HTTP get to the endpoint /secrets/ against my Kubernetes 1.10
API server yields:


kind: SecretList
apiVersion: v1
metadata: {resourceVersion: '1143', selfLink: 
/api/v1/namespaces/default/secrets}
items:
- data: ***
  metadata:
creationTimestamp: '2018-05-17T21:30:58Z'
labels: {uses-certbot: 'True'}
name: certificates-29c2fa1
namespace: default
resourceVersion: '534'
selfLink: /api/v1/namespaces/default/secrets/certificates-29c2fa1
uid: 96f5c905-5a19-11e8-b931-005056be54be
  type: Opaque


(It is returned as JSON; I converted it to YAML.)  As you can see,
"kind" and "apiVersion" is missing in the first and only item.  If
you try to feed this into kubectl 1.10, it aborts with a validation
error.  As a workaround, I add those two fields by myself but I
wonder why the API's output is not accepted by kubectl in its
pristine form.

Is this intentional or a bug?

Tschö,
Torsten.

-- 
Torsten Bronger

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" 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.


Re: [kubernetes-users] Kubernetes Ingress HTTP Load Balancer with port range

2018-05-17 Thread Jonathan Mejias
Yeah, i know that does so many things but

How can i create virtual host using kubernetes and using HTTP Load Balancer
types? I just need to use PATHS for my dynamic endpoints applications. And
i need to use the better practices in that.

regards


2018-05-17 11:00 GMT-04:00 'Tim Hockin' via Kubernetes user discussion and
Q :

> Kubernetes' Ingress abstraction does what you want.
>
> On Wed, May 16, 2018 at 6:38 PM Jonathan Mejias 
> wrote:
>
>> Im using kubernetes to deploy apps, how can i create that virtual host
>> into a container cluster?
>>
>> On Wed, May 16, 2018, 19:36 'Tim Hockin' via Kubernetes user discussion
>> and Q  wrote:
>>
>>> HTTP gives you a much better solution - virtual hosts.
>>>
>>> The 'host' header tells your HTTP ingress which logical service to
>>> access.
>>>
>>> e.g. `curl -h 'host: foo.com' http://210.210.210.22:80/`
>>>   is different than `curl -h 'host: bar.com'
>>> http://210.210.210.22:80/` 
>>>
>>> On Wed, May 16, 2018 at 1:19 PM Jonathan Mejías 
>>> wrote:
>>>
 Hi

 How do i to create a HTTP load balancer with kubernetes ingress?

 Example:

 SVC-1 .  --  210.210.210.22:*80 (internet)*
 SVC-2 .  --  210.210.210.22:*81 (internet)*
 SVC-3 .  --  210.210.210.22:*82 (internet)*

 services created in type NodePort, but what are the definitios for
 ingress.yaml file?

 I don't want to use paths, because my services have dynamic endpoints,
 and additional paths responses with 404. So i want to define by port range.

 how can i do that?

 Regards

 --
 You received this message because you are subscribed to the Google
 Groups "Kubernetes user discussion and Q" 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.

>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Kubernetes user discussion and Q" 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.
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Kubernetes user discussion and Q" 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.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Kubernetes user discussion and Q" 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.
>



-- 
Saludos Cordiales...

Atte. Jonathan Mejías

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" 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.


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" 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.


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 variable describing to which device it
> is assigned, e.g. B4 - which means: device type B, number 4.
>
> Now we are lending access to device by manually passing access to chosen
> container, but my need is to automate it: developer sends request: I need
> device type A. System checks if there is any resource available and gives
> access to developer. When developer is done, he sends request: ok, I'm
> done. Ramp down the container. And next user can request for it.


You can easily create pods based on a yaml. And use the Kubernetes API or
kubectl to create them or delete.

IIUC, that is what you need, right?

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" 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.


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 are lending access to device by manually passing access to chosen 
container, but my need is to automate it: developer sends request: I need 
device type A. System checks if there is any resource available and gives 
access to developer. When developer is done, he sends request: ok, I'm done. 
Ramp down the container. And next user can request for it.

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" 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.


[kubernetes-users] Resizing Cluster to Save on GKE Costs

2018-05-17 Thread Nicholas J Ingrassellino
I read somewhere that a good way to save costs on GKE is to reduce the node 
size to zero (gcloud container clusters resize [name] --size 0) when you 
are not using it (non-production environments, mostly). This worked great 
until I tried to bring it back up over zero. Now all the pods are listed as 
"unschedulable". Everything is part of a deployment and will otherwise 
re-balance as expected if I, say, bring it from three to one nodes.

Is there something else I should be doing to achieve these goal? Either 
another method or somehow configuring the deployments to handle this?

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" 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.


[kubernetes-users] Re: Slow response times using default Ingress on GKE

2018-05-17 Thread Dave Jensen
Thank you, I think this solved the issue. We set the IdleTimeout (in 
Golang) to 620s and, in our staging environment, I have not seen a request 
take longer than 200ms.

On Wednesday, May 16, 2018 at 2:41:32 PM UTC-7, Nicks wrote:
>
> I created an HTTP LB setup on GCP using a golang HTTP server without 
> kubernetes and was able to see rare long-tail latencies in >1 second. After 
> I set `IdleTimeout` to larger than ten minutes, I stopped seeing those slow 
> responses.  The echoheaders image uses nginx and doesn't set 
> `keepalive_timeout`  (sent PR to update this).  
>
>
> https://cloud.google.com/compute/docs/load-balancing/http/#timeouts_and_retries
>
>
> On Wednesday, May 16, 2018 at 8:08:26 AM UTC-7, ama...@upstream.tech wrote:
>>
>> On Monday, May 14, 2018 at 5:10:55 PM UTC-4, francois...@polynom.io 
>> wrote: 
>> > Le jeudi 19 avril 2018 02:14:28 UTC+2, Dave Jensen a écrit : 
>> > > We have what I believe to be a very straightforward ingress setup on 
>> GKE. However, we started noticing random slowdowns almost immediately. On 
>> further investigation it looked like the time to first byte (TTFB) was very 
>> slow (1 - 3 seconds) but sporadically. Sometimes it would be a pre-flight 
>> OPTIONS request, sometimes an application request, and other times on 
>> static files. Even the echoserver would sporadically have a long TTFB. 
>> > > 
>> > > 
>> > > I set up a portforward to one of the pods serving up our REST API 
>> server. Sure enough, the slowdown was eliminated.  
>> > > 
>> > > 
>> > > Before I go down the rabbit hole of trying other ingress controllers, 
>> I figured I'd ask the community if I was doing something wrong. 
>> > > 
>> > > 
>> > > ingress.yaml 
>> > > 
>> > > 
>> > > 
>> > > 
>> > > 
>> > > apiVersion: extensions/v1beta1 
>> > > kind: Ingress 
>> > > metadata: 
>> > >   name: brewd-ingress 
>> > > spec: 
>> > >   tls: 
>> > >   - hosts: 
>> > > - stage-api2.example.com 
>> > > - stage-app2.example.com 
>> > > - stage-echo.example.com 
>> > > secretName: redacted 
>> > >   rules: 
>> > >   - host: stage-api2.example.com 
>> > > http: 
>> > >   paths: 
>> > >   - backend: 
>> > >   serviceName: gateway-service 
>> > >   servicePort: 7000 
>> > >   - host: stage-app2.example.com 
>> > > http: 
>> > >   paths: 
>> > >   - backend: 
>> > >   serviceName: web-service 
>> > >   servicePort: 8080 
>> > >   - host: stage-echo.example.com 
>> > > http: 
>> > >   paths: 
>> > > - backend: 
>> > > serviceName: echoserver 
>> > > servicePort: 8080 
>> > > gateway-service.yaml 
>> > > 
>> > > 
>> > > 
>> > > apiVersion: v1 
>> > > kind: Service 
>> > > metadata: 
>> > >   name: gateway-service 
>> > >   labels:  
>> > > app: gateway 
>> > > spec: 
>> > >   type: NodePort 
>> > >   ports: 
>> > >   - port: 7000 
>> > >   selector: 
>> > > app: gateway 
>> > > --- 
>> > > apiVersion: apps/v1beta2 
>> > > kind: Deployment 
>> > > metadata: 
>> > >   name: gateway-deployment 
>> > > spec: 
>> > >   selector: 
>> > > matchLabels: 
>> > >   app: gateway 
>> > >   replicas: 1 
>> > >   template: 
>> > > metadata: 
>> > >   labels: 
>> > > app: gateway 
>> > > spec: 
>> > >   containers: 
>> > >   - name: gateway 
>> > > image: us.gcr.io/redacted/gateway:1.3.0-rc.0 
>> > > imagePullPolicy: Always 
>> > > ports: 
>> > > - containerPort: 7000 
>> > > env: 
>> > > - name: REDACTED_ENV 
>> > >   value: stage 
>> > > The web-service yaml looks almost exactly the same as the above. 
>> > 
>> > Hi guyz, I have the exact same problem. If I deploy the service as LB, 
>> it is blazing fast, but if I use the basic ingress on Google Ingress, I 
>> have random latency whith response time ranging from 50ms to 5s. 
>>
>> Hi Francois, 
>>
>> We are having a similar issue. Could you give more information on how you 
>> deployed as a LB? Want to get that setup while we continue looking for a 
>> solution to this.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" 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.


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, 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 because you are subscribed to the Google Groups 
> "Kubernetes user discussion and Q" 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.

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" 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.


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 because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" 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.


Re: [kubernetes-users] Kubernetes Ingress HTTP Load Balancer with port range

2018-05-17 Thread 'Tim Hockin' via Kubernetes user discussion and Q
Kubernetes' Ingress abstraction does what you want.

On Wed, May 16, 2018 at 6:38 PM Jonathan Mejias 
wrote:

> Im using kubernetes to deploy apps, how can i create that virtual host
> into a container cluster?
>
> On Wed, May 16, 2018, 19:36 'Tim Hockin' via Kubernetes user discussion
> and Q  wrote:
>
>> HTTP gives you a much better solution - virtual hosts.
>>
>> The 'host' header tells your HTTP ingress which logical service to access.
>>
>> e.g. `curl -h 'host: foo.com' http://210.210.210.22:80/`
>>   is different than `curl -h 'host: bar.com'
>> http://210.210.210.22:80/` 
>>
>> On Wed, May 16, 2018 at 1:19 PM Jonathan Mejías 
>> wrote:
>>
>>> Hi
>>>
>>> How do i to create a HTTP load balancer with kubernetes ingress?
>>>
>>> Example:
>>>
>>> SVC-1 .  --  210.210.210.22:*80 (internet)*
>>> SVC-2 .  --  210.210.210.22:*81 (internet)*
>>> SVC-3 .  --  210.210.210.22:*82 (internet)*
>>>
>>> services created in type NodePort, but what are the definitios for
>>> ingress.yaml file?
>>>
>>> I don't want to use paths, because my services have dynamic endpoints,
>>> and additional paths responses with 404. So i want to define by port range.
>>>
>>> how can i do that?
>>>
>>> Regards
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Kubernetes user discussion and Q" 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.
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Kubernetes user discussion and Q" 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.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Kubernetes user discussion and Q" 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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" 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.


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
(like the ones with SSD, etc.)

So, yes, it should. Have fun! :-)

On Thursday, May 17, 2018,  wrote:

> Greetings,
> I am looking for a software to manage a pool of application, using API and
> database system. Let me show You my problem:
> I have 3 types of services: A, B and C. Each one requires outside
> resource, so we distinguish each instance. e.g.: I have 6 A-type virtual
> machines { A1, A2,.., A6}, 3 B-type: {B1,B2,B3} and 10 C-type. Each
> instance has its own internal setup, mostly IPs to remote resources. Now I
> want my managing system to solve usecases:
> 1. One of Jenkinses (I could have few) needs to test something using
> A-type instance. He sends API request and gets details to about random from
> that type and uses it. When he is done, the instance isfreed and returned
> using API.
> 2. A software developers needs some manual tests and asks for C-type
> instance. He sends an API request and gets details on one of those
> instances.
> 3. Only one "user" (Jenkins or human) can be using given instance at any
> time.
> 4. I need to be able to check who/what is using any of the instances at
> any time (can also be API query).
> 5. There needs to be security logs - when who requested what, what he got
> in
> return.
>
>
> I am looking for a system to solve this problem, one of my Colleagues
> hinted me to use Kubernetes - since the "instance" can be containers with
> uniqe configuration it might be possible, but could anyone comment: does
> Kubernetes satisfies all my needs? Or maybe something else?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Kubernetes user discussion and Q" 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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" 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.


Re: [kubernetes-users] Multiple vs Single K8S Clusters

2018-05-17 Thread Prys Williams
Thanks Paul, that's interesting.

Anyone doing the opposite - i.e. single cluster for all?

On Thursday, 17 May 2018 09:01:42 UTC+1, Paul Ingles wrote:
>
> We run multiple clusters for the reasons you highlight: cluster-local 
> failures are more readily mitigated. We’ve had networking issues affect one 
> cluster but not the others. 
>
> We don’t separate clusters along env lines, instead just named after 
> colours (currently) and state the order in which they’ll receive cluster 
> software upgrades. 
>
> Product teams (the users of our clusters) can choose to run their software 
> how they like. Most teams deploy to a single cluster and that’s good 
> enough. For the more public-facing teams that have more money at stake 
> we’ve got some tooling to help them operate against multiple clusters 
> (we’re watching the progress of Federation but we’re in AWS so have had to 
> tie stuff together ourselves).
>
> On Thu, 17 May 2018 at 08:55, Prys Williams  > wrote:
>
>> Hi all,
>> I'm looking for broad advice on cluster architecture, specifically around 
>> the pros and cons of having multiple clusters vs single cluster for Prod 
>> workloads. Our approach so far has been to use a single cluster with RBAC, 
>> namespaces, network policies etc all being used to segregate services from 
>> each other. We're facing arguments however to limit blast-radius of cluster 
>> failure or compromise and to deploy across multiple Production clusters. Is 
>> there any best-practice reference architecture in this space that might 
>> point one way or the other?
>>
>> Many thanks
>>
>> Prys
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Kubernetes user discussion and Q" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to kubernetes-use...@googlegroups.com .
>> To post to this group, send email to kubernet...@googlegroups.com 
>> .
>> 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" 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.


[kubernetes-users] Looking for service pool managing solution

2018-05-17 Thread tomasz . szandala
Greetings,
I am looking for a software to manage a pool of application, using API and 
database system. Let me show You my problem:
I have 3 types of services: A, B and C. Each one requires outside resource, so 
we distinguish each instance. e.g.: I have 6 A-type virtual machines { A1, 
A2,.., A6}, 3 B-type: {B1,B2,B3} and 10 C-type. Each instance has its own 
internal setup, mostly IPs to remote resources. Now I want my managing system 
to solve usecases:
1. One of Jenkinses (I could have few) needs to test something using A-type 
instance. He sends API request and gets details to about random from that type 
and uses it. When he is done, the instance isfreed and returned using API.
2. A software developers needs some manual tests and asks for C-type instance. 
He sends an API request and gets details on one of those instances.
3. Only one "user" (Jenkins or human) can be using given instance at any time.
4. I need to be able to check who/what is using any of the instances at any 
time (can also be API query).
5. There needs to be security logs - when who requested what, what he got in 
return.


I am looking for a system to solve this problem, one of my Colleagues hinted me 
to use Kubernetes - since the "instance" can be containers with uniqe 
configuration it might be possible, but could anyone comment: does Kubernetes 
satisfies all my needs? Or maybe something else?

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" 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.


[kubernetes-users] Container not starting Error: cannot find volume \"default-token-hwtv5\" to mount into container

2018-05-17 Thread Niranjan Kolly
Hi,

I am getting below issue when trying to create pod.

Any help is appreciated.

 pod_workers.go:186] Error syncing pod 2f0ce712-59a6-11e8-afb7-005056980c31
("kong-migration-2gtfp_default(2f0ce712-59a6-11e8-afb7-005056980c31)"),
skipping: failed to "StartContainer" for "kong-migration" with
CreateContainerConfigError: "cannot find volume \"default-token-hwtv5\" to
mount into container \"kong-migration\""


-- 
Regards
NiranjanKolly

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" 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.


Re: [kubernetes-users] Multiple vs Single K8S Clusters

2018-05-17 Thread Paul Ingles
We run multiple clusters for the reasons you highlight: cluster-local
failures are more readily mitigated. We’ve had networking issues affect one
cluster but not the others.

We don’t separate clusters along env lines, instead just named after
colours (currently) and state the order in which they’ll receive cluster
software upgrades.

Product teams (the users of our clusters) can choose to run their software
how they like. Most teams deploy to a single cluster and that’s good
enough. For the more public-facing teams that have more money at stake
we’ve got some tooling to help them operate against multiple clusters
(we’re watching the progress of Federation but we’re in AWS so have had to
tie stuff together ourselves).

On Thu, 17 May 2018 at 08:55, Prys Williams  wrote:

> Hi all,
> I'm looking for broad advice on cluster architecture, specifically around
> the pros and cons of having multiple clusters vs single cluster for Prod
> workloads. Our approach so far has been to use a single cluster with RBAC,
> namespaces, network policies etc all being used to segregate services from
> each other. We're facing arguments however to limit blast-radius of cluster
> failure or compromise and to deploy across multiple Production clusters. Is
> there any best-practice reference architecture in this space that might
> point one way or the other?
>
> Many thanks
>
> Prys
>
> --
> You received this message because you are subscribed to the Google Groups
> "Kubernetes user discussion and Q" 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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" 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.


[kubernetes-users] Multiple vs Single K8S Clusters

2018-05-17 Thread Prys Williams
Hi all,
I'm looking for broad advice on cluster architecture, specifically around 
the pros and cons of having multiple clusters vs single cluster for Prod 
workloads. Our approach so far has been to use a single cluster with RBAC, 
namespaces, network policies etc all being used to segregate services from 
each other. We're facing arguments however to limit blast-radius of cluster 
failure or compromise and to deploy across multiple Production clusters. Is 
there any best-practice reference architecture in this space that might 
point one way or the other?

Many thanks

Prys

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" 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.