mirror of
https://gitlab.durp.info/durfy/runbooks/ansible.git
synced 2026-05-07 08:00:29 -05:00
25 lines
626 B
Text
25 lines
626 B
Text
|
|
[Unit]
|
||
|
|
Description=Lightweight Kubernetes
|
||
|
|
Documentation=https://k3s.io
|
||
|
|
After=network-online.target
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Type=notify
|
||
|
|
ExecStartPre=-/sbin/modprobe br_netfilter
|
||
|
|
ExecStartPre=-/sbin/modprobe overlay
|
||
|
|
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
|