Kind was working quite well until recently. I now get
running kind with rootless provider requires setting systemd property "Delegate=yes
And I can see that podman info
does not show cpu
host:
arch: amd64
buildahVersion: 1.39.2
cgroupControllers:
- memory
- pids
cgroupManager: systemd
cgroupVersion: v2
...
This is interesting cause cpu should also be delegated
systemd.services."user@".serviceConfig.Delegate="cpu cpuset io memory pids";
systemd.packages = [(
pkgs.writeTextFile {
name = "delegate.conf";
text = ''
[Service]
Delegate=yes
'';
destination = "/etc/systemd/system/user@.service.d/delegate.conf";
}
)]
Delegation is in place
/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/cgroup.controllers
cpuset cpu io memory pids
and
/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/cgroup.subtree_control
cpuset cpu io memory pids
Stacktrace:
Stack Trace:
sigs.k8s.io/kind/pkg/errors.New
sigs.k8s.io/kind/pkg/errors/errors.go:28
sigs.k8s.io/kind/pkg/cluster/internal/create.validateProvider
sigs.k8s.io/kind/pkg/cluster/internal/create/create.go:253
sigs.k8s.io/kind/pkg/cluster/internal/create.Cluster
sigs.k8s.io/kind/pkg/cluster/internal/create/create.go:70
sigs.k8s.io/kind/pkg/cluster.(*Provider).Create
sigs.k8s.io/kind/pkg/cluster/provider.go:192
sigs.k8s.io/kind/pkg/cmd/kind/create/cluster.runE
sigs.k8s.io/kind/pkg/cmd/kind/create/cluster/createcluster.go:110
sigs.k8s.io/kind/pkg/cmd/kind/create/cluster.NewCommand.func1
sigs.k8s.io/kind/pkg/cmd/kind/create/cluster/createcluster.go:54
github.com/spf13/cobra.(*Command).execute
github.com/spf13/cobra@v1.8.0/command.go:983
github.com/spf13/cobra.(*Command).ExecuteC
github.com/spf13/cobra@v1.8.0/command.go:1115
github.com/spf13/cobra.(*Command).Execute
github.com/spf13/cobra@v1.8.0/command.go:1039
sigs.k8s.io/kind/cmd/kind/app.Run
sigs.k8s.io/kind/cmd/kind/app/main.go:53
sigs.k8s.io/kind/cmd/kind/app.Main
sigs.k8s.io/kind/cmd/kind/app/main.go:35
main.main
sigs.k8s.io/kind/main.go:25
runtime.main
runtime/proc.go:283
runtime.goexit
runtime/asm_amd64.s:1700