mirror of
https://github.com/siderolabs/talos.git
synced 2025-12-25 19:31:20 +01:00
This is a cosmetic fix: when `KubeletServiceController` tries to write files to `/etc/kubernetes` before `/var` mounted, it would fail. Controller will be restarted, but each restart involves a backoff on each restart which gets longer with each restart. On the first boot, or when EPHEMERAL is encrypted, mounting might take considerable time (seconds), so during that time controller might enter such long backoff timeout that it will delay whole boot sequence - it won't finish before `kubelet` is started. By waiting for `EPHEMERAL` to be mounted before starting the controller we eliminate long backoff cycles. Also fix a bug when `StartAllServices` task might start a kubelet early (before `KubeletServiceController` is actually going to start it). Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com> (cherry picked from commit c1aed62405dddb2cbd2d47d699aae0c94df70886)