Operation
From Google Borg to Kubernetes
Container Management System – From Google Borg to Kubernetes
Since its introduction, Kubernetes has been one of the leading container management systems worldwide. This has been driven by the widespread use of packaging applications into containers to isolate them from their dependencies on other processes, thereby minimising disruptions during failures. For an extremely comprehensive service, the adoption and growth of Kubernetes over the past half-decade has been immensely rapid. None of this would have been possible without Borg. How was Kubernetes developed from Borg?
Borg as a Container Management System
Google has long used container technology; since 2003–2004, when Borg was developed as a small internal project alongside Google's search engine. It grew with the search engine, as its potential in container technology was harnessed to build virtually everything that exists at Google today. Gmail, Google Docs, GCP, and all other services offered by Google run on Borg. Borg has a fundamental structure consisting of a single master node, known as the Borgmaster, which relays instructions to agent machines, the Borglets, which are responsible for executing nodes in a cluster. The Borgmaster interacts directly with the user to receive instructions and orchestrate their execution in containers, provided the user has the appropriate authorisation.
Until 2013, container technology was purely internal, until Docker entered the scene. At that time, Docker was an open-source tool that allowed online software developers to package their applications in a way that enabled them to be moved quickly between machines. Docker was adopted by Google the following year to demonstrate to the public what had become possible through Borg. Back then, Docker had a crucial limitation: it could only run on a single node. This meant that automation was not possible, and every build had to be packaged manually. This could quickly become tedious as workloads grew into the tens or hundreds.
Kubernetes as a Container Management System
Since Google had already explored the possibility of automating and managing containers at scale with Borg, ideas began to emerge about making this available to the public. Google intended to develop an open-source version of Borg, which is known today as Kubernetes. The same developers who were involved in the Borg project moved over to Kubernetes. To eliminate any dependencies on Borg, Kubernetes was developed in a different language (Go) from that of Borg (C++). From the outset, it was created with the intention of making it an open-source platform, which required acquiring an open-source licence (Apache), whilst simultaneously being integrated into the GCP ecosystem.
Borg is the predecessor of Kubernetes. Most of the features in Kubernetes originate from Borg, with a few minor changes. Their fundamental structure is similar; Kubernetes also features a master node that connects the agents (known as Kubelets) and the user. They also have similar internal key-value stores under different names: Paxos for Borg and etcd for Kubernetes. What sets Kubernetes apart from Borg is that it is an open-source solution. It is not merely a Google project; the open-source community has made substantial contributions to what it is today. Currently, thousands of developers from the open-source community are continually working on it.
Kubernetes also enables users to label workloads, something that was not extensively explored in Borg. Actions on labelled workloads can be executed collectively. Due to its extreme robustness, scalability, and breadth of features, Borg remains Google's primary container management system.



