mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
[systemd] really wait for network to come online (#1665)
Wants= is required to actually set the dependency on network-online.service After= is required or k3s.service will be started at the same time as network-online.service In network environments with slow DHCP, both are required to ensure valid network configuration for k3s Signed-off-by: Adam Farden <adam@farden.cz>
This commit is contained in:
parent
fc55904d82
commit
86d2e2a5f8
@ -643,6 +643,7 @@ create_systemd_service_file() {
|
||||
[Unit]
|
||||
Description=Lightweight Kubernetes
|
||||
Documentation=https://k3s.io
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
Description=Lightweight Kubernetes
|
||||
Documentation=https://k3s.io
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
|
@ -648,6 +648,7 @@ create_systemd_service_file() {
|
||||
[Unit]
|
||||
Description=Lightweight Kubernetes
|
||||
Documentation=https://k3s.io
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
Conflicts=${conflicts}
|
||||
|
Loading…
Reference in New Issue
Block a user