mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-16 09:52:20 +02:00
The containerd config works in mysterious ways - sometimes it acts hierarchical with respect to the section headers, other times not. In this case, setting runc.options resets all the fields of the runc section, including 'runtime_type'. Having an unset runtime_type causes containerd to fail to spawn containers (but the daemon itself starts succesfully) returning the error: kubelet[13148]: E0823 11:57:17.030551 13148 remote_runtime.go:116] "RunPodSandbox from runtime service failed" err="rpc error: code = InvalidArgument desc = failed to create containerd container: create container failed validation: container.Runtime.Name must be set: invalid argument" Explicitly set the runtime_type in all containerd configs, and bump the config version to 2. Reported as https://github.com/kinvolk/Flatcar/issues/484 Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>