Unverified Commit 0726ce75 authored by Darren Shepherd's avatar Darren Shepherd Committed by GitHub

Merge pull request #416 from galal-hussein/change_systemd_target

Change systemd unit file target to network-online.target
parents 74785421 c30c8096
......@@ -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
......
[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
......
[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
......
......@@ -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}
......
[Unit]
Description=Lightweight Kubernetes
Documentation=https://k3s.io
After=network.target
After=network-online.target
[Service]
Type=notify
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment