Merge pull request #416 from galal-hussein/change_systemd_target

Change systemd unit file target to network-online.target
pull/422/head
Darren Shepherd 2019-04-30 11:24:17 -07:00 committed by GitHub
commit 0726ce75e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -287,7 +287,7 @@ in the root of this repo `k3s.service` which is as follows
[Unit]
Description=Lightweight Kubernetes
Documentation=https://k3s.io
After=network.target
After=network-online.target
[Service]
Type=notify

View File

@ -1,7 +1,7 @@
[Unit]
Description=Lightweight Kubernetes
Documentation=https://k3s.io
After=network.target
After=network-online.target
[Service]
ExecStartPre=-/sbin/modprobe br_netfilter
ExecStartPre=-/sbin/modprobe overlay

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

View File

@ -422,7 +422,7 @@ create_systemd_service_file() {
[Unit]
Description=Lightweight Kubernetes
Documentation=https://k3s.io
After=network.target
After=network-online.target
[Service]
Type=${SYSTEMD_TYPE}

View File

@ -1,7 +1,7 @@
[Unit]
Description=Lightweight Kubernetes
Documentation=https://k3s.io
After=network.target
After=network-online.target
[Service]
Type=notify