k3s/k3s.service

28 lines
760 B
INI
Raw Permalink Normal View History

2019-01-24 18:30:38 +00:00
[Unit]
Description=Lightweight Kubernetes
Documentation=https://k3s.io
After=network-online.target
Wants=network-online.target
2019-01-24 18:30:38 +00:00
[Service]
Type=notify
EnvironmentFile=-/etc/default/%N
EnvironmentFile=-/etc/sysconfig/%N
EnvironmentFile=-/etc/systemd/system/k3s.service.env
ExecStartPre=/bin/sh -xc '! /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service 2>/dev/null'
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