What happened:
Creating cluster "kind" ...
DEBUG: docker/images.go:58] Image: kindest/node:v1.19.1@sha256:98cf5288864662e37115e362b23e4369c8c4a408f99cbc06e58ac30ddc721600 present locally
✓ Ensuring node image (kindest/node:v1.19.1) 🖼
✓ Preparing nodes 📦
✗ Writing configuration 📜
ERROR: failed to create cluster: failed to generate kubeadm config content: failed to get kubernetes version from node: file should only be one line, got 2 lines
Stack Trace:
sigs.k8s.io/kind/pkg/errors.Errorf
/home/raphael/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/errors/errors.go:33
sigs.k8s.io/kind/pkg/cluster/nodeutils.KubeVersion
/home/raphael/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/cluster/nodeutils/util.go:40
sigs.k8s.io/kind/pkg/cluster/internal/create/actions/config.getKubeadmConfig
/home/raphael/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/cluster/internal/create/actions/config/config.go:170
sigs.k8s.io/kind/pkg/cluster/internal/create/actions/config.(*Action).Execute.func1.1
/home/raphael/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/cluster/internal/create/actions/config/config.go:82
sigs.k8s.io/kind/pkg/errors.UntilErrorConcurrent.func1
/home/raphael/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/errors/concurrent.go:30
runtime.goexit
/snap/go/6727/src/runtime/asm_amd64.s:1374
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
run
/home/raphael/go/bin/kind create cluster -v 1
Environment:
kind v0.9.0 go1.15.5 linux/amd64
docker 19.03.14
ubuntu 20.04.1 LTS
Thank you
fixed in https://github.com/kubernetes-sigs/kind/commit/f9db81c462abccb2c3a527cdf54160e681579554
this will be fixed in 0.10.0
in the meantime this means your docker install is throwing an error when running commands (which is the extra line, in the future we'll not parse that, that was a bug), so you might want to look into that.
you can get the fix now by cloning kind from master and running make build, then bin/kind will be the updated binary, which you can place into path etc.
there's also a make install target, but it mostly works well if you have $GOPATH/bin in your $PATH.
thank you