-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change system dependencies for "post" systemd service
This is required to be compatible with OVS installations, which use SysV init scripts (wrapped with systemd-sysv-generator). On such systems, OVS may depend on the network-online.target, so the start order of services changes (OVS will start after the "post" service). The proposed solution is to add the following explicit dependencies After: openvswitch-switch.service Before: kubelet.service. Note: the dependency is ignored if the openvswitch-switch.service is not found. Signed-off-by: Yury Kulazhenkov <[email protected]>
- Loading branch information
1 parent
2d2e5a4
commit 1841fbe
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
bindata/manifests/sriov-config-service/kubernetes/sriov-config-post-network-service.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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
contents: | | ||
[Unit] | ||
Description=Configures SRIOV NIC - post network configuration | ||
After=systemd-networkd-wait-online.service NetworkManager-wait-online.service | ||
Before=network-online.target | ||
After=systemd-networkd-wait-online.service NetworkManager-wait-online.service openvswitch-switch.service | ||
Before=kubelet.service | ||
[Service] | ||
Type=oneshot | ||
ExecStart=/var/lib/sriov/sriov-network-config-daemon -v 2 --zap-log-level 2 service --phase post | ||
StandardOutput=journal+console | ||
[Install] | ||
WantedBy=network-online.target | ||
WantedBy=multi-user.target | ||
enabled: true | ||
name: sriov-config-post-network.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