環境
- Mac(M1), Ventura 13.4.1
- Rancher Desktop 1.9.1
- kind 0.20.0
$ kind create cluster
Creating cluster "kind" ...
✓ Ensuring node image (kindest/node:v1.27.3) 🖼
✗ Preparing nodes 📦
Deleted nodes: ["kind-control-plane"]
ERROR: failed to create cluster: command "docker run --name kind-control-plane --hostname kind-control-plane --label io.x-k8s.kind.role=control-plane --privileged --security-opt seccomp=unconfined --security-opt apparmor=unconfined --tmpfs /tmp --tmpfs /run --volume /var --volume /lib/modules:/lib/modules:ro -e KIND_EXPERIMENTAL_CONTAINERD_SNAPSHOTTER --detach --tty --label io.x-k8s.kind.cluster=kind --net kind --restart=on-failure:1 --init=false --cgroupns=private --publish=127.0.0.1:65469:6443/TCP -e KUBECONFIG=/etc/kubernetes/admin.conf kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72" failed with error: exit status 125
Command Output: cc8fae461f31c29c4093dd28c9a96dc9b1689121e8cb0b89ec7f5259d31c72e5
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "cgroup" to rootfs at "/sys/fs/cgroup": mount cgroup:/sys/fs/cgroup/openrc (via /proc/self/fd/7), flags: 0xe, data: openrc: invalid argument: unknown.
バグっぽい
kindをダウングレード
$ cd /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula
$ git log --oneline -n 5 kind.rb
723db0bbeb5 kind: update 0.20.0 bottle.
d17073d2919 kind 0.20.0
2bbd54652f0 kind: update 0.19.0 bottle.
88ad6c6fe6b kind 0.19.0
3dc55237178 kind: update 0.18.0 bottle.
$ git ch 2bbd54652f0 kind.rb
$ brew uninstall kind
$ brew install kind.rb
$ kind version
kind v0.19.0 go1.20.4 darwin/arm64
解決
$ kind create cluster
Creating cluster "kind" ...
✓ Ensuring node image (kindest/node:v1.27.1) 🖼
✓ Preparing nodes 📦
✓ Writing configuration 📜
✓ Starting control-plane 🕹️
✓ Installing CNI 🔌
✓ Installing StorageClass 💾
Set kubectl context to "kind-kind"
You can now use your cluster with:
kubectl cluster-info --context kind-kind
Have a nice day! 👋