-
Notifications
You must be signed in to change notification settings - Fork 564
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: wait for
/var
to be mounted in kubelet service controller
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 c1aed62)
- Loading branch information
Showing
3 changed files
with
34 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters