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