News for hackers. Stuff that matters.
Re:One way to make containers network: BGP by moondev on Sunday July 17, 2016 @01:24PM (#12110889)
Is flannel used in Kubernetes for networking by default? Or is it something that needs to enabled and configured separately?
Re:One way to make containers network: BGP by amouat on Sunday July 17, 2016 @04:27PM (#12111653)
Kubernetes has a requirement that containers (more accurately "pods") can connect via a "flat networking space". How this is achieved varies between deployments, flannel, calico and weave are all common approaches. Kelsey Hightower's "Kubernetes the Hard Way" simply configured it at the router level: https://github.com/kelseyhightower/kubernetes-the-hard-way/b...
Re:One way to make containers network: BGP by moondev on Sunday July 17, 2016 @05:35PM (#12111965)
That makes sense. Thanks for the link as well, i've been looking for something exactly like it. Looks like a great resource!
Re:One way to make containers network: BGP by lobster_johnson on Sunday July 17, 2016 @05:35PM (#12111966)
Kubernetes doesn't have a "default" as such. It requires something external to manage the subnet, and needs to be configured to use it.

However, if you run it on AWS, it can automatically configure a bridge (cbr0) and configure up the VPC routing table for you.

GCE (Google's managed Kubernetes on Google Cloud) also handles this automatically.

There's also experimental support for Flannel built into K8s, which can be enabled with a flag. Not sure if it's worth using.

Re:One way to make containers network: BGP by bboreham on Sunday July 17, 2016 @05:42PM (#12112010)
Nitpick: Google's managed Kubernetes is called GKE.

However the OSS Kubernetes has code to configure routes on GCE same as it does for AWS.