5 ms·
Worth remembering, Kubernetes was built to Google's needs, and Google runs with a shared network space on any given VM and assigns an entire /24 to the VM runni
by falcolas 11y ago
Worth remembering, Kubernetes was built to Google's needs, and Google runs with a shared network space on any given VM and assigns an entire /24 to the VM running docker. Each container gets one of those addresses. [1] This probably won't work for everyone - be sure to read into the fine grained details before drinking the koolade.
They're also at least two build versions behind Docker.[2]
[1] https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/networking.md https://github.com/GoogleCloudPlatform/kubernetes/blob/maste...
[2] https://github.com/GoogleCloudPlatform/kubernetes/blob/master/cluster/saltbase/salt/docker/init.sls https://github.com/GoogleCloudPlatform/kubernetes/blob/maste...
- wyc 11y agoAgreed. I have more specifics of Google-centralism in my comment here: https://news.ycombinator.com/item?id=9330049 https://news.ycombinator.com/item?id=9330049
- crb 11y agoIn that post, you asked "Do you see any other providers here? https://github.com/GoogleCloudPlatform/kubernetes/tree/master/pkg/volume" https://github.com/GoogleCloudPlatform/kubernetes/tree/maste... Your implication was, at the time, there was only a GCE Persistent Disk provider. Today, there's that, plus AWS EBS volume, git repo, GlusterFS, NFS, Ceph block device, iSCSI, as well as host path and empty directory. Sounds like the product has evolved with a broad spectrum of support to me!
- wyc 11y agoYes, it has! Again, I don't think the design decisions were made to lock out other vendors. It's very reasonable to me that the first platform to be supported by Google engineers is Google's platform. Side note: I should be a better citizen and link to specific commits next time.
- josephjacks 11y agoI see Docker 1.6 in your [2] link, where do you see they are two versions behind Docker?
- dordoka 11y agoCurrent is Docker 1.6.2, released about 20 days ago. There also was a 1.6.1. That makes it two versions. Also, v1.6.0 was released almost two months ago. [0] [0] https://github.com/docker/docker/blob/master/CHANGELOG.md https://github.com/docker/docker/blob/master/CHANGELOG.md
- josephjacks 11y agoUnderstood, I was referring to major point releases vs minor. Thanks for clarifying.
- xorcist 11y agoGoogle runs docker in a VM? Why would you do that? I understand you might want to play with it in a lab environment, but in production at scale (especially Google-scale) sounds very strange.
- brendandburns 11y agoUsers of the Google Cloud run Docker in VMs, since VMs are what the Google Cloud Platform sells. (as does every public cloud provider [e.g. AWS]) For now, VMs are required to ensure a security barrier between different user's containers on the same physical machine. See some of Dan Walsh's posts on the subject (e.g. https://opensource.com/business/14/9/security-for-docker https://opensource.com/business/14/9/security-for-docker) for more context.
- jganetsk 11y agoGoogle Container Engine runs containers that are in Docker format. The user does not have to deal with Docker or a VM. https://cloud.google.com/container-engine/ https://cloud.google.com/container-engine/ There's also Amazon EC2 Container Service http://aws.amazon.com/ecs/details/ http://aws.amazon.com/ecs/details/ So Google and Amazon don't just sell VMs. They sell "CMs" as well (Container Machines).
- gobengo 11y agoIt's most likely that even the "CM"s from both providers are actually Virtual Machines running on a hypervisor running on bare metal. You just can't tell and don't need to care (for most workloads).
- roasbeef 11y agoIndeed the networking requirements of Kubernetes are very different from that of Docker. However, it isn't too difficult to setup a Layer 2 unification overlay network. I've had success with flannel[1], it's pretty easy to set up and supports VxLAN. [1] https://github.com/coreos/flannel https://github.com/coreos/flannel
- peteridah 11y agoyes, flannel works very well in the VxLAN mode on AWS