News for hackers. Stuff that matters.
Re:Kubernetes 1.4: Making it easy to run on Kubernetes anywhere by TheIronYuppie on Monday September 26, 2016 @04:45PM (#12585399)
We've heard this quite a lot - there's actually a few ways to tackle this, one of the most common is to either use Ingress (which is a built in L7 load balancer) or run an nginx instance in a pod on the cluster (https://github.com/nginxinc/kubernetes-ingress), and, in either case, direct all traffic to your node port across your cluster.

It's really one command to do either - if you have trouble, please ping me (aronchick (at) google)!

Disclosure: I work at Google on Kubernetes

Re:Kubernetes 1.4: Making it easy to run on Kubernetes anywhere by x0rg on Monday September 26, 2016 @04:57PM (#12585477)
Is there a way to do this properly in AWS without nginx? It would also be great to have features to switch only percentage of the traffic to an app when doing blue/green deployments.
Re:Kubernetes 1.4: Making it easy to run on Kubernetes anywhere by TheIronYuppie on Monday September 26, 2016 @05:28PM (#12585738)
The best way to do blue/green is put them behind a single endpoint. So, if your endpoint is 'app: node-app', then you put the label 'app: node-app' on BOTH your existing version, and your future version, and target all traffic to a service with the selector 'app: node-app'.

Then, you slowly start to spin up your new instances from 1 -> 10 -> 100 (or whatever). The traffic will split automatically because both apps have the same label/selector, and you control the amount by how many instances of each you have.

Disclosure: I work at Google on Kubernetes

Re:Kubernetes 1.4: Making it easy to run on Kubernetes anywhere by pdeva1 on Tuesday September 27, 2016 @01:37AM (#12587657)
does kubernetes take care of 'connection draining', ie making sure requests in flight are completed before killing traffic to an instance?
Re:Kubernetes 1.4: Making it easy to run on Kubernetes anywhere by sporkland on Tuesday September 27, 2016 @03:54PM (#12592555)
Sort of a blend. It will send a sigterm to your process first which should be your signal to start draining and exit when they are done. If you don't finish within a configurable timeout then sigkill is sent.
Re:Kubernetes 1.4: Making it easy to run on Kubernetes anywhere by x0rg on Tuesday September 27, 2016 @02:22AM (#12587794)
I was wondering how to make this automated through some sort of pipeline that needs a human to click "go on with the next X % of the rollout and how I would do it with kubectl without too much pain.
Re:Kubernetes 1.4: Making it easy to run on Kubernetes anywhere by sporkland on Tuesday September 27, 2016 @03:57PM (#12592575)
We've been doing this with multiple deployments (e.g. 1, half, all) and updating the deployments sequentially when the previous one looked good. (these are all fronted by one service).
Re:Kubernetes 1.4: Making it easy to run on Kubernetes anywhere by danyx on Tuesday September 27, 2016 @08:03AM (#12588899)
Take a look at Traefik (http://traefik.io/), it's a reverse proxy you use as an edge service behind the cloud providers L4/L7 LB. It is designed to change dynamically and can listen to K8s ingress changes and reconfigure itself automatically and it has let's encrypt support (although at the moment not so streamlined in k8s but that is supposed to change soon).