Installation and Setup

Kubebuilder requires multiple binaries to be installed and cannot be installed with go get.

Installing a stable release

Install kubebuilder by downloading the latest stable release from thegithub repo.

  1. version=1.0.8 # latest stable version
  2. arch=amd64
  3. # download the release
  4. curl -L -O "https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${version}/kubebuilder_${version}_darwin_${arch}.tar.gz"
  5. # extract the archive
  6. tar -zxvf kubebuilder_${version}_darwin_${arch}.tar.gz
  7. mv kubebuilder_${version}_darwin_${arch} kubebuilder && sudo mv kubebuilder /usr/local/
  8. # update your PATH to include /usr/local/kubebuilder/bin
  9. export PATH=$PATH:/usr/local/kubebuilder/bin
  1. version=1.0.8 # latest stable version
  2. arch=amd64
  3. # download the release
  4. curl -L -O "https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${version}/kubebuilder_${version}_linux_${arch}.tar.gz"
  5. # extract the archive
  6. tar -zxvf kubebuilder_${version}_linux_${arch}.tar.gz
  7. mv kubebuilder_${version}_linux_${arch} kubebuilder && sudo mv kubebuilder /usr/local/
  8. # update your PATH to include /usr/local/kubebuilder/bin
  9. export PATH=$PATH:/usr/local/kubebuilder/bin

Installing latest release from master

You can install the latest kubebuilder release built from the master. Note thatthis release is not well tested, so you might encounter some bugs.

  1. arch=amd64
  2. # download the release
  3. curl -L -O https://storage.googleapis.com/kubebuilder-release/kubebuilder_master_darwin_${arch}.tar.gz
  4. # extract the archive
  5. tar -zxvf kubebuilder_master_darwin_${arch}.tar.gz
  6. mv kubebuilder_master_darwin_${arch} kubebuilder && sudo mv kubebuilder /usr/local/
  7. # update your PATH to include /usr/local/kubebuilder/bin
  8. export PATH=$PATH:/usr/local/kubebuilder/bin
  1. arch=amd64
  2. # download the release
  3. curl -L -O https://storage.googleapis.com/kubebuilder-release/kubebuilder_master_linux_${arch}.tar.gz
  4. # extract the archive
  5. tar -zxvf kubebuilder_master_linux_${arch}.tar.gz
  6. mv kubebuilder_master_linux_${arch} kubebuilder && sudo mv kubebuilder /usr/local/
  7. # update your PATH to include /usr/local/kubebuilder/bin
  8. export PATH=$PATH:/usr/local/kubebuilder/bin