EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 5e2d5a38 authored by Karl Grube's avatar Karl Grube
Browse files

splitting k3s into three roles

parent 140eae5b
No related branches found
No related tags found
No related merge requests found
......@@ -13,11 +13,3 @@
value: "1"
state: present
reload: yes
- name: k3s started and enabled
service:
name: k3s
state: started
enabled: yes
---
- 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
......@@ -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
......
[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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment