Skip to content

Instantly share code, notes, and snippets.

@dims
Last active January 11, 2024 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dims/712c5696ac0b430f3b509f15359275ea to your computer and use it in GitHub Desktop.
Save dims/712c5696ac0b430f3b509f15359275ea to your computer and use it in GitHub Desktop.
Test latest containerd version using kind

πŸ’  ensure you are on latest go version

$ go version
go version go1.21.6 linux/amd64

πŸ’  ensure kind is in ~/go/src/sigs.k8s.io/kind/

git clone https://github.com/kubernetes-sigs/kind.git ~/go/src/sigs.k8s.io/kind

πŸ’  build base image

cd ~/go/src/sigs.k8s.io/kind/images/base
make quick "EXTRA_BUILD_OPT=--build-arg CONTAINERD_VERSION=v2.0.0-beta.0"

πŸ’  install kind

go install sigs.k8s.io/kind@v0.20.0

πŸ’  ensure k8s is in ~/go/src/k8s.io/kubernetes

git clone https://github.com/kubernetes/kubernetes.git ~/go/src/k8s.io/kubernetes

πŸ’  pick specific version of kubernetes

git fetch --all --tags && git checkout -b branch-for-v1.29.0 v1.29.0

πŸ’  build node image

kind build node-image --base-image gcr.io/k8s-staging-kind/base:v20240111-40c81f18

πŸ’  create cluster using image just built

kind create cluster --image=kindest/node:latest

πŸ’  test if you can reach the cluster

kubectl cluster-info --context kind-kind

πŸ’  dump cluster information and look for containerd version

kubectl cluster-info --context kind-kind dump

πŸ’  download hydrophone

go install sigs.k8s.io/hydrophone@latest

πŸ’  run a single e2e test from k8s

hydrophone --focus 'Simple pod should contain last line of the log'

πŸ’  run conformance tests

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