Add support to run with podman in rootless mode using cgroups v2 #1084
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
Fix running k3d with podman and cgroups (v2)
Why
By running podman in rootless mode,
k3d
/k3s
requires extra delegation in order to work (cpu, cpuset and I/O delegations), added the steps to the doc. Some errors likefailed to find cpu cgroup (v2)
would happened on cgroup v2 and cpu delegation not enabled ([BUG] rootless docker -> k3d blocks forever (k3s boot loops) #585)Podman is API compatible with docker, however there is a slightly difference on network retrieval of IP address. One uses only CIDR notation (127.0.0.1/32) while the other, for unique IP address use the literal notation (127.0.0.1). Create a wrapper function to extract the value instead of throwing an error.
The following happened before the fix (
netaddr.ParseIPPrefix("11.89.1.4"): no '/'
)Implications
N/A