GithubHelp home page GithubHelp logo

Comments (5)

BenTheElder avatar BenTheElder commented on July 17, 2024

https://kind.sigs.k8s.io/docs/user/rootless/

sudo update-grub

updating grub will only take affect on rebooting, but you appear to be on cgroup v2 already

systemctl --user restart podman

podman is usually daemonless which is why we don't mention this for podman

However rootless podman also documents: https://kind.sigs.k8s.io/docs/user/rootless/#:~:text=On%20some%20distributions,kind%20create%20cluster

did you try systemd-run?

from kind.

jwoods-millennial avatar jwoods-millennial commented on July 17, 2024

Sorry forgot to mention that, but yes I did try that systemd-run as well and get the same error.

from kind.

BenTheElder avatar BenTheElder commented on July 17, 2024

kind is detecting if the environment is correct, this error means we don't see the correct cgroup controllers available:

if !info.SupportsMemoryLimit || !info.SupportsPidsLimit || !info.SupportsCPUShares {
return errors.New("running kind with rootless provider requires setting systemd property \"Delegate=yes\", see https://kind.sigs.k8s.io/docs/user/rootless/")

Can you try rocky linux 9? It's possible this has been fixed in the distro. Rootless containers is relatively more recently stabilized.

from kind.

jwoods-millennial avatar jwoods-millennial commented on July 17, 2024

Unfortunately upgrading is not an option for me. I was able to gain access to a remote cluster so I don't necessarily need this up and running, but it is concerning that the error message being provided here doesn't provide a full solution. I also tried to manually set certain permissions in my cgroup like so:

echo +cpuset | sudo tee /sys/fs/cgroup/cgroup.subtree_control
echo +cpu | sudo tee /sys/fs/cgroup/cgroup.subtree_control
echo +memory | sudo tee /sys/fs/cgroup/cgroup.subtree_control
echo +pids | sudo tee /sys/fs/cgroup/cgroup.subtree_control

but the CPU kept failing. That portion seems to be more of a Rocky OS problem so I wouldn't expect that to be figured out here.

from kind.

BenTheElder avatar BenTheElder commented on July 17, 2024

The error message is just a hint, the docs for rootless are here: https://kind.sigs.k8s.io/docs/user/rootless/

from kind.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.