Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
0726ce75
Unverified
Commit
0726ce75
authored
Apr 30, 2019
by
Darren Shepherd
Committed by
GitHub
Apr 30, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #416 from galal-hussein/change_systemd_target
Change systemd unit file target to network-online.target
parents
74785421
c30c8096
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
README.md
README.md
+1
-1
k3s.service.j2
contrib/ansible/roles/k3s/master/templates/k3s.service.j2
+1
-1
k3s.service.j2
contrib/ansible/roles/k3s/node/templates/k3s.service.j2
+1
-1
install.sh
install.sh
+1
-1
k3s.service
k3s.service
+1
-1
No files found.
README.md
View file @
0726ce75
...
@@ -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
...
...
contrib/ansible/roles/k3s/master/templates/k3s.service.j2
View file @
0726ce75
[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
...
...
contrib/ansible/roles/k3s/node/templates/k3s.service.j2
View file @
0726ce75
[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
...
...
install.sh
View file @
0726ce75
...
@@ -422,7 +422,7 @@ create_systemd_service_file() {
...
@@ -422,7 +422,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
}
...
...
k3s.service
View file @
0726ce75
[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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment