-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
templates: Introduce kubelet-dependencies.target
The primary motivation here is to eventually stop pulling container images `Before=network-online.target` because it creates complicated dependency loops. We introduce a new `kubelet-dependencies.target` - both `crio.service` and `kubelet.service` are `After+Requires=kubelet-dependencies.target`. This also makes it cleaner for pre-kubelet services, which can just order themselves `Before=kubelet-dependencies.target`. This is just a small preparatory PR to introduce the target unit. The real bigger change will come when we move services like `ovs-configuration.service` and `node-valid-hostname.service` to actually be `After=network-online.target` + `Before=kubelet-dependendies.target`. Crucially, this will unblock services like `machine-config-daemon-pull.service` that want to fetch containers *before* `kubelet.service` but want to be `After=network-online.target`.
- Loading branch information
Showing
9 changed files
with
26 additions
and
20 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
8 changes: 8 additions & 0 deletions
8
templates/common/_base/units/kubelet-dependencies.target.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: kubelet-dependencies.target | ||
contents: | | ||
[Unit] | ||
Description=Dependencies necessary to run kubelet | ||
Documentation=https://github.com/openshift/machine-config-operator/ | ||
Requires=basic.target network-online.target | ||
Wants=NetworkManager-wait-online.service crio-wipe.service | ||
Wants=rpc-statd.service |
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
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