Skip to content

Issue: kind load image-archive error when using kind v0.23.0 #143

Description

@FengGaoCSC

Issue description

When using Kind v0.23.0 , when create kind cluster, it will report the following error

$ work/dra-example-driver# ./demo/create-cluster.sh
.............
++ : dra-example-driver
++ : registry.k8s.io/dra-example-driver
++ : dra-example-driver
+++ sed -n 's/^appVersion: //p'
++++ git rev-parse --show-toplevel
+++ helm show chart /home/anode/Work/dra-example-driver/deployments/helm/dra-example-driver
++ : v0.2.1
++ : ubuntu22.04
++ : https://github.com/kubernetes/kubernetes.git
++ : v1.35.0
++ : false
++ : dra-example-driver-cluster
++ : /home/anode/Work/dra-example-driver/demo/scripts/kind-cluster-config.yaml
++ : registry.k8s.io/dra-example-driver/dra-example-driver:v0.2.1
++ : kindest/node:v1.35.0
..........
+ env KIND_EXPERIMENTAL_PROVIDER=docker kind create cluster --name dra-example-driver-cluster --image kindest/node:v1.35.0 --config /home/anode/Work/dra-example-driver/demo/scripts/kind-cluster-config.yaml --wait 2m
using docker due to KIND_EXPERIMENTAL_PROVIDER
Creating cluster "dra-example-driver-cluster" ...
 ✓ Ensuring node image (kindest/node:v1.35.0) 🖼 
 ✓ Preparing nodes 📦 📦  
 ✓ Writing configuration 📜 
 ✓ Starting control-plane 🕹 
 ✓ Installing CNI 🔌 
 ✓ Installing StorageClass 💾 
 ✓ Joining worker nodes 🚜 
 ✓ Waiting ≤ 2m0s for control-plane = Ready ⏳ 
 • Ready after 12s 💚
Set kubectl context to "kind-dra-example-driver-cluster"
You can now use your cluster with:

kubectl cluster-info --context kind-dra-example-driver-cluster

Thanks for using kind! 😊
..............
++ echo 'Docker found in PATH.'
Docker found in PATH.
++ CONTAINER_TOOL=docker
++ : env KIND_EXPERIMENTAL_PROVIDER=docker kind
+ IMAGE_ARCHIVE=driver_image.tar
+ docker save -o driver_image.tar registry.k8s.io/dra-example-driver/dra-example-driver:v0.2.1
+ env KIND_EXPERIMENTAL_PROVIDER=docker kind load image-archive --name dra-example-driver-cluster driver_image.tar
using docker due to KIND_EXPERIMENTAL_PROVIDER
ERROR: failed to detect containerd snapshotter

how to fix:

Modify the following code /demo/scripts/common.sh

diff --git a/demo/scripts/common.sh b/demo/scripts/common.sh
# The kubernetes repo to build the kind cluster from
: ${KIND_K8S_REPO:="https://github.com/kubernetes/kubernetes.git"}

# The kubernetes tag to build the kind cluster from
# From ${KIND_K8S_REPO}/tags
-: "${KIND_IMAGE:=kindest/node:v1.35.0}"
+: "${KIND_IMAGE:=kindest/node:v1.34.2}"

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions