Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between Google's Borg and Google's Kubernetes and Docker

Tags:

As I know, Google's Kubernetes is based on Google's Borg; however, it seems like Borg is larger than Kubernetes. My understanding is that Borg is a large system containing a sub-system like Kubernetes and its own containers like Docker.

So, I would like to know:

1) In term of containers cluster management, what's the key difference between Borg (sub-system inside) and Kubernetes?

2) In term of container technology, what's the key difference between Borg (sub-system inside) and Docker?

like image 272
Supasate Avatar asked Sep 04 '15 05:09

Supasate


1 Answers

I have no 'inside' knowledge of Borg so this answer is based only on what Google themselves have published here. For much greater detail, you should look into that paper. Section 8 makes specific reference to Kubernetes and is the basis of this answer (along with Kubernetes own docs):

1) Key differences:

  • Borg groups work by 'job'; Kubernetes adds 'labels' for greater flexibility.
  • Borg uses an IP-per-machine design; Kubernetes uses a network-per-machine and IP-per-Pod design to allow late-binding of ports (letting developers choose ports, not the infrastructure).
  • Borg's API seems to be extensive and rich, but with a steep learning curve; Kubernetes APIs are presumably simpler. At least, for someone who hasn't worked with Borg, the Kubernetes API seems pretty clean and understandable.

2) Borg seems to use LMCTFY as its container technology. Kubernetes allows the use of Docker or rkt.

Some other obvious differences are the Borg is not open source and not available for use outside of Google, while Kubernetes is both of those things. Borg has been in production use for more than 10 years, while Kubernetes just hit v1.0 in July 2015.

Hope this helps. Check out that Borg paper; it is worth the time to read the whole thing.

like image 170
rwehner Avatar answered Sep 19 '22 13:09

rwehner