Created
March 30, 2024 10:44
-
-
Save saiyam1814/860f4fef2fc370c0a0545927206a7d89 to your computer and use it in GitHub Desktop.
Kind cluster create from the github branch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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