Compiling from Source

The list of binary releasesarrow-up-right is available on GitHub. Together with gcloud, minikube, and kubeadmin, these cover several scenarios to get started with Kubernetes.

Kubernetes can also be compiled from source relatively quickly. You can clone the repository from GitHub, and then use the Makefile to build the binaries. You can build them natively on your platform if you have a Golang environment properly set up, or via Docker containers if you are on a Docker hostarrow-up-right.

To build natively with Golang, first install Golangarrow-up-right. Download files and directions can be found online.

Once Golang is working, you can clone the kubernetes repository, around 500MB in size. Change into the directory and use make:

$ cd $GOPATH

$ git clone https://github.com/kubernetes/kubernetes

$ cd kubernetes

$ make

On a Docker host, clone the repository anywhere you want and use the make quick-release command. The build will be done in Docker containers.

The _output/bin directory will contain the newly built binaries.

You may find some materials via GitLabarrow-up-right, but most resources are on GitHubarrow-up-right at the moment.

Last updated