Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts: enable nested cgroups in minikube
Example: $ minikube start --driver=kvm2 --container-runtime=crio $ ./scripts/minikube-enable-nested-cgroups.sh And now: $ kubectl run --annotations='io.kubernetes.cri-o.cgroup2-mount-hierarchy-rw=true' ubuntu --image=ubuntu --rm -it -- /bin/bash root@ubuntu:/# cat /proc/self/cgroup ## <-- inside pod 0::/ root@ubuntu:/# mkdir /sys/fs/cgroup/pizza root@ubuntu:/# echo $$ > /sys/fs/cgroup/pizza/cgroup.procs root@ubuntu:/# cat /proc/self/cgroup 0::/pizza Signed-off-by: Kornilios Kourtis <[email protected]>
- Loading branch information