EOX GitLab Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
k3s-worker-role
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ansible-public
k3s-worker-role
Commits
5e2d5a38
Commit
5e2d5a38
authored
2 years ago
by
Karl Grube
Browse files
Options
Downloads
Patches
Plain Diff
splitting k3s into three roles
parent
140eae5b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tasks/all.yml
+0
-8
0 additions, 8 deletions
tasks/all.yml
tasks/debian.yml
+0
-11
0 additions, 11 deletions
tasks/debian.yml
tasks/main.yml
+2
-2
2 additions, 2 deletions
tasks/main.yml
templates/k3s_service.j2
+0
-22
0 additions, 22 deletions
templates/k3s_service.j2
with
2 additions
and
43 deletions
tasks/all.yml
+
0
−
8
View file @
5e2d5a38
...
...
@@ -13,11 +13,3 @@
value
:
"
1"
state
:
present
reload
:
yes
-
name
:
k3s started and enabled
service
:
name
:
k3s
state
:
started
enabled
:
yes
This diff is collapsed.
Click to expand it.
tasks/debian.yml
deleted
100644 → 0
+
0
−
11
View file @
140eae5b
---
-
name
:
k3s service file
template
:
src
:
k3s_service.j2
dest
:
/etc/systemd/system/k3s.service
register
:
k3s_service_file
-
name
:
daemon reload
systemd
:
daemon_reload
:
yes
when
:
k3s_service_file.changed
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
2
−
2
View file @
5e2d5a38
...
...
@@ -4,8 +4,8 @@
-
name
:
import base k3s role
import_role
:
name
:
k3s_base
-
include_tasks
:
"
{{ansible_os_family|lower}}.yml
"
vars
:
k3s_argv
:
"
server
{{
extra_server_args
|
default("
"
)
}}
"
-
import_tasks
:
all.yml
...
...
This diff is collapsed.
Click to expand it.
templates/k3s_service.j2
deleted
100644 → 0
+
0
−
22
View file @
140eae5b
[Unit]
Description=Lightweight Kubernetes
Documentation=https://k3s.io
After=network-online.target
[Service]
Type=notify
ExecStart=/usr/local/bin/k3s server {{ extra_server_args | default("") }}
KillMode=process
Delegate=yes
# Having non-zero Limit*s causes performance problems due to accounting overhead
# in the kernel. We recommend using cgroups to do container-local accounting.
LimitNOFILE=1048576
LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity
TimeoutStartSec=0
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment