k3s/k3s.service

24 lines
561 B
SYSTEMD
Raw Normal View History

2019-01-24 18:30:38 +00:00
[Unit]
Description=Lightweight Kubernetes
Documentation=https://k3s.io
After=network-online.target
2019-01-24 18:30:38 +00:00
[Service]
Type=notify
EnvironmentFile=/etc/systemd/system/k3s.service.env
2019-01-24 18:30:38 +00:00
ExecStart=/usr/local/bin/k3s server
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
2019-01-24 18:30:38 +00:00
LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity
TimeoutStartSec=0
2019-05-08 00:54:40 +00:00
Restart=always
RestartSec=5s
2019-01-24 18:30:38 +00:00
[Install]
WantedBy=multi-user.target