aur/k3s-bin/k3s.service

29 lines
731 B
SYSTEMD
Raw Normal View History

2021-07-26 20:09:23 +02:00
[Unit]
Description=Lightweight Kubernetes
Documentation=https://k3s.io
After=network-online.target
2021-12-31 18:04:47 +01:00
Wants=network-online.target
2021-07-26 20:09:23 +02:00
[Service]
Type=notify
2021-12-31 18:04:47 +01:00
EnvironmentFile=-/etc/default/%N
EnvironmentFile=-/etc/sysconfig/%N
EnvironmentFile=-/etc/systemd/system/k3s.service.env
2021-07-26 20:09:23 +02:00
ExecStartPre=-/sbin/modprobe br_netfilter
ExecStartPre=-/sbin/modprobe overlay
ExecStart=/usr/bin/k3s server
KillMode=process
Delegate=yes
2021-12-31 18:04:47 +01:00
# 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
2021-07-26 20:09:23 +02:00
LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity
TimeoutStartSec=0
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target