Commit c30c8096 authored by galal-hussein's avatar galal-hussein

Change systemd unit file target to network-online.target

parent a66aae51
...@@ -287,7 +287,7 @@ in the root of this repo `k3s.service` which is as follows ...@@ -287,7 +287,7 @@ in the root of this repo `k3s.service` which is as follows
[Unit] [Unit]
Description=Lightweight Kubernetes Description=Lightweight Kubernetes
Documentation=https://k3s.io Documentation=https://k3s.io
After=network.target After=network-online.target
[Service] [Service]
Type=notify Type=notify
......
[Unit] [Unit]
Description=Lightweight Kubernetes Description=Lightweight Kubernetes
Documentation=https://k3s.io Documentation=https://k3s.io
After=network.target After=network-online.target
[Service] [Service]
ExecStartPre=-/sbin/modprobe br_netfilter ExecStartPre=-/sbin/modprobe br_netfilter
ExecStartPre=-/sbin/modprobe overlay ExecStartPre=-/sbin/modprobe overlay
......
[Unit] [Unit]
Description=Lightweight Kubernetes Description=Lightweight Kubernetes
Documentation=https://k3s.io Documentation=https://k3s.io
After=network.target After=network-online.target
[Service] [Service]
ExecStart=/usr/local/bin/k3s agent --server https://{{ master_ip }}:6443 --token {{ hostvars[groups['master'][0]]['token'] }} ExecStart=/usr/local/bin/k3s agent --server https://{{ master_ip }}:6443 --token {{ hostvars[groups['master'][0]]['token'] }}
KillMode=process KillMode=process
......
...@@ -420,7 +420,7 @@ create_systemd_service_file() { ...@@ -420,7 +420,7 @@ create_systemd_service_file() {
[Unit] [Unit]
Description=Lightweight Kubernetes Description=Lightweight Kubernetes
Documentation=https://k3s.io Documentation=https://k3s.io
After=network.target After=network-online.target
[Service] [Service]
Type=${SYSTEMD_TYPE} Type=${SYSTEMD_TYPE}
......
[Unit] [Unit]
Description=Lightweight Kubernetes Description=Lightweight Kubernetes
Documentation=https://k3s.io Documentation=https://k3s.io
After=network.target After=network-online.target
[Service] [Service]
Type=notify 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