Skip to content

Instantly share code, notes, and snippets.

@saiyam1814
Created March 30, 2024 10:44
Show Gist options
  • Save saiyam1814/860f4fef2fc370c0a0545927206a7d89 to your computer and use it in GitHub Desktop.
Save saiyam1814/860f4fef2fc370c0a0545927206a7d89 to your computer and use it in GitHub Desktop.
Kind cluster create from the github branch
export GOPATH=$HOME/go
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
mkdir -p $GOPATH/src/k8s.io
cd $GOPATH/src/k8s.io
git clone https://github.com/kubernetes/kubernetes.git
cd kubernetes
On Mac M1
I needed new version of bash and gnu-tar
brew install bash
brew install gnu-tar
###Make sure to have latest verion og Kind, Docker and 1.22+ for Golang
```
git checkout release-1.30
kind build node-image
Once build use below config
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
image: kindest/node:latest
- role: worker
image: kindest/node:latest
- role: worker
image: kindest/node:latest
kind create cluster --name kind-rc-version --config config.yaml
If you have issues accessing kubectl then directly use `/usr/local/bin/kubectl get nodes` after setting the context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment