Skip to content

Latest commit

 

History

History
66 lines (42 loc) · 2.11 KB

install.md

File metadata and controls

66 lines (42 loc) · 2.11 KB

Installing Kops (Binaries)

Darwin (MacOS)

From Homebrew:

brew update && brew install --HEAD kops

Installing Kops (Source)

go get -d k8s.io/kops
cd ${GOPATH}/src/k8s.io/kops/
git checkout release
make
  • The release branch is where releases are taken from. This is the stable code branch.
  • The master branch should also be functional, but is where active development happens, so may be less stable.

Cross Compiling

Cross compiling for things like nodeup are now done automatically via make nodeup. make push-aws-run TARGET=admin@$TARGET will automatically choose the linux amd64 build from your .build directory.

Troubleshooting

  • Make sure $GOPATH is set, and your workspace is configured.
  • kops will not compile with symlinks in $GOPATH. See issue go issue 17451 for more information
  • kops uses the relatively new Go vendoring, so building requires Go 1.6 or later, or you must export GO15VENDOREXPERIMENT=1 when building with Go 1.5. The makefile sets GO15VENDOREXPERIMENT for you. Go code generation does not honor the env var in 1.5, so for development you should use Go 1.6 or later
  • Kops will only compile if the source is checked out in $GOPATH/src/k8s.io/kops. If you try to use $GOPATH/src/github.com/kubernetes/kops you will run into issues with package imports not working as expected.

Installing Other Dependencies

Installing Kubectl

kubectl is the CLI tool to manage and operate Kubernetes clusters. You can install it as follows.

Darwin (MacOS)

brew install kubernetes-cli

Other Platforms

Installing AWS CLI Tools

Darwin (MacOS)

The officially supported way of installing the tool is with pip as in

pip install awscli

You can also grab the tool with homebrew, although this is not officially supported by AWS.

brew update && brew install awscli