Skip to content
Syed Sayem edited this page Jan 3, 2020 · 7 revisions

Instructions for installing KinD (Kubernetes in Docker) on macOS

 

Go

Start by installing Go, if you don't already have it.

If you’re on a Mac, the quickest way to install Go is with Homebrew:

$ brew update
$ brew install go --cross-compile-common

Once installed, configure the GOPATH with Godep

$ go get github.com/tools/godep

Now add the following to your ~/.zshrc or ~/.bash_profile

export GOPATH=$HOME/go
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin

 

Docker

Install Docker if you don't have it already.

brew cask install docker

 

Kubectl

https://kubernetes.io/docs/reference/kubectl/overview/

Install with brew:

$ brew install kubernetes-cli

 

Install via Homebrew:

brew install kind

Create a cluster and switch the context of Kubectl:

$ kind create cluster --name sample
$ export KUBECONFIG="$(kind get kubeconfig-path --name="sample")"
$ kubectl cluster-info
Clone this wiki locally