Overview of Issue
If you are using a newer systemd then your container will get stuck in ContainerCreating state on your provider with gVisor enabled.
Indication of Error
You may see the following Events in the logs upon use of kubectl describe pod
Cause of Error
The new systemd 247.2-2 has switched to a new “unified” cgroup hierarchy (i.e. cgroup v2) which is not supported by gVisor.
Ubuntu version 21.10 is affected.
Support References
- systemd switches to the “unified” cgroup hierarchy documentation
- systemd-cgroup support in gVisor documentation
Workaround
Apply the following on each Kubernetes node in order to switch back to cgroup v1