-
Couldn't load subscription status.
- Fork 1.7k
Description
What happened:
Attempting to replace Docker Desktop for Windows on WSL2 with Podman leads to KIND failures that I am unable to figure out how to work around at the moment.
Running KIND with a non-root account leads to the following errors:
wsl2_podman_kind.log
notroot@wsl2:~$ kind -v5 create cluster
enabling experimental podman provider
Cgroup controller detection is not implemented for Podman. If you see cgroup-related errors, you might need to set systemd property "Delegate=yes", see https://kind.sigs.k8s.io/docs/user/rootless/
ERROR: failed to create cluster: running kind with rootless provider requires cgroup v2, see https://kind.sigs.k8s.io/docs/user/rootless/
Running KIND as root leads to different error and times out much later on, but seems to prove that it doesn't appear to be an actual problem with cgroup v1/v2.
root@wsl2:~# /root/go/bin/kind -v5 create cluster
enabling experimental podman provider
Creating cluster "kind" ...
DEBUG: podman/images.go:58] Image: kindest/node@sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6 present locally
✓ Ensuring node image (kindest/node:v1.21.1) 🖼
✓ Preparing nodes 📦
...
✓ Writing configuration 📜
DEBUG: kubeadminit/init.go:81] I0907 02:05:08.207219 198 initconfiguration.go:246] loading configuration from "/kind/kubeadm.conf"
...
[kubelet-check] It seems like the kubelet isn't running or healthy.
[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused.
...
✗ Starting control-plane 🕹️
ERROR: failed to create cluster: failed to init node with kubeadm: command "podman exec --privileged kind-control-plane kubeadm init --skip-phases=preflight --config=/kind/kubeadm.conf --skip-token-print --v=6" failed with error: exit status 1
...
couldn't initialize a Kubernetes cluster
What you expected to happen:
Kind to create a cluster successfully on WSL using Podman
How to reproduce it (as minimally and precisely as possible):
Start with fresh Ubuntu 20.04 WSL2 image:
- Installed latest version of Podman
- Installed latest version of Go 1.15.x
- Installed Kind
GO111MODULE="on" go get sigs.k8s.io/[email protected]
Anything else we need to know?:
Environment:
- kind version: (use
kind version):kind v0.11.1 go1.15.15 linux/amd64 - Kubernetes version: (use
kubectl version): not installed - Podman version: (use
podman info): 3.2.3 - OS (e.g. from
/etc/os-release): Ubuntu 20.04.3 LTS (kernel: 5.10.16.3-microsoft-standard-WSL2)