2019-01-24 18:30:38 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Lightweight Kubernetes
|
|
|
|
Documentation=https://k3s.io
|
2019-04-29 23:28:58 +00:00
|
|
|
After=network-online.target
|
2020-09-26 08:44:06 +00:00
|
|
|
Wants=network-online.target
|
2019-01-24 18:30:38 +00:00
|
|
|
|
|
|
|
[Service]
|
2019-04-18 01:27:20 +00:00
|
|
|
Type=notify
|
2021-05-14 20:51:15 +00:00
|
|
|
EnvironmentFile=-/etc/default/%N
|
|
|
|
EnvironmentFile=-/etc/sysconfig/%N
|
2021-02-02 08:18:38 +00:00
|
|
|
EnvironmentFile=-/etc/systemd/system/k3s.service.env
|
2021-06-16 09:37:04 +00:00
|
|
|
ExecStartPre=/bin/sh -xc '! /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service'
|
2019-01-24 18:30:38 +00:00
|
|
|
ExecStart=/usr/local/bin/k3s server
|
|
|
|
KillMode=process
|
|
|
|
Delegate=yes
|
2020-05-03 07:27:54 +00: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
|
2019-01-24 18:30:38 +00:00
|
|
|
LimitNPROC=infinity
|
|
|
|
LimitCORE=infinity
|
|
|
|
TasksMax=infinity
|
2019-04-17 18:27:03 +00:00
|
|
|
TimeoutStartSec=0
|
2019-05-08 00:54:40 +00:00
|
|
|
Restart=always
|
2019-07-22 22:03:36 +00:00
|
|
|
RestartSec=5s
|
2019-01-24 18:30:38 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|