Skip to content

Instantly share code, notes, and snippets.

@mjhea0
Last active January 24, 2022 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mjhea0/218fcfcca56e812bb442656aff67f0da to your computer and use it in GitHub Desktop.
Save mjhea0/218fcfcca56e812bb442656aff67f0da to your computer and use it in GitHub Desktop.

Install KiND

Instructions for installing KinD (Kubernetes in Docker) on Mac OS

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, create a workspace, configure the GOPATH and add the workspace's bin folder to your system path:

$ mkdir $HOME/go
$ export GOPATH=$HOME/go
$ export PATH=$PATH:$GOPATH/bin

Docker

Install Docker if you don't have it already.

Kubectl

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

Install with brew:

$ brew install kubernetes-cli

KiND

Install:

go get sigs.k8s.io/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment