Skip to content

Instantly share code, notes, and snippets.

@bentito
Last active May 13, 2022 20:02
Show Gist options
  • Save bentito/c72db53bc01a5f394d3dd4cfdc1220cd to your computer and use it in GitHub Desktop.
Save bentito/c72db53bc01a5f394d3dd4cfdc1220cd to your computer and use it in GitHub Desktop.
Building kind node-image for a given k8s tag
See comments to this gist for how to build a kind node-image for a given k8s tag
@bentito
Copy link
Author

bentito commented May 13, 2022

gvm use go1.18.2
mkdir -p $GOPATH/src/k8s.io
cd $GOPATH/src/k8s.io
git clone https://github.com/kubernetes/kubernetes
cd kubernetes
git checkout v1.25.0-alpha.0
kind build node-image --image 'kindest/node:v1.25.0.alpha.0'
# if you get a snapshot missing error, keep trying
kind create cluster --config kind-config-1.25.yaml

@bentito
Copy link
Author

bentito commented May 13, 2022

# name: kind-config-1.25.yaml
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
 image: kindest/node:v1.25.0.alpha.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment