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
742571e6
Unverified
Commit
742571e6
authored
Feb 24, 2020
by
Erik Wilson
Committed by
GitHub
Feb 24, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1429 from St0rmingBr4in/inventory-subdirectory
contrib/ansible: Move example inventory into subdirectory and add extra_server_args
parents
42108006
cddcbe78
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
2 deletions
+3
-2
README.md
contrib/ansible/README.md
+1
-1
all.yml
contrib/ansible/inventory/group_vars/all.yml
+1
-0
hosts.ini
contrib/ansible/inventory/hosts.ini
+0
-0
k3s.service.j2
contrib/ansible/roles/k3s/master/templates/k3s.service.j2
+1
-1
No files found.
contrib/ansible/README.md
View file @
742571e6
...
@@ -40,7 +40,7 @@ node
...
@@ -40,7 +40,7 @@ node
Start provisioning of the cluster using the following command:
Start provisioning of the cluster using the following command:
```
```
ansible-playbook site.yml
ansible-playbook site.yml
-i inventory/hosts.ini
```
```
## Kubeconfig
## Kubeconfig
...
...
contrib/ansible/group_vars/all.yml
→
contrib/ansible/
inventory/
group_vars/all.yml
View file @
742571e6
...
@@ -2,3 +2,4 @@ k3s_version: v0.8.1
...
@@ -2,3 +2,4 @@ k3s_version: v0.8.1
ansible_user
:
debian
ansible_user
:
debian
systemd_dir
:
/etc/systemd/system
systemd_dir
:
/etc/systemd/system
master_ip
:
"
{{
hostvars[groups['master'][0]]['ansible_host']
|
default(groups['master'][0])
}}"
master_ip
:
"
{{
hostvars[groups['master'][0]]['ansible_host']
|
default(groups['master'][0])
}}"
extra_server_args
:
"
"
contrib/ansible/hosts.ini
→
contrib/ansible/
inventory/
hosts.ini
View file @
742571e6
File moved
contrib/ansible/roles/k3s/master/templates/k3s.service.j2
View file @
742571e6
...
@@ -5,7 +5,7 @@ After=network-online.target
...
@@ -5,7 +5,7 @@ After=network-online.target
[Service]
[Service]
ExecStartPre=-/sbin/modprobe br_netfilter
ExecStartPre=-/sbin/modprobe br_netfilter
ExecStartPre=-/sbin/modprobe overlay
ExecStartPre=-/sbin/modprobe overlay
ExecStart=/usr/local/bin/k3s server
ExecStart=/usr/local/bin/k3s server
{{ extra_server_args | default("") }}
KillMode=process
KillMode=process
Delegate=yes
Delegate=yes
LimitNOFILE=infinity
LimitNOFILE=infinity
...
...
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