Change systemd unit file target to network-online.target

This commit is contained in:
galal-hussein
2019-04-30 01:28:58 +02:00
parent 85b01829fb
commit 5b9e9b5316
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
[Unit]
Description=Lightweight Kubernetes
Documentation=https://k3s.io
After=network.target
After=network-online.target
[Service]
ExecStart=/usr/local/bin/k3s agent --server https://{{ master_ip }}:6443 --token {{ hostvars[groups['master'][0]]['token'] }}
KillMode=process