Add k3s.service unit file

This commit is contained in:
Darren Shepherd 2019-01-24 11:30:38 -07:00
parent 6fa96105b9
commit 126247b8b6

17
k3s.service Normal file
View File

@ -0,0 +1,17 @@
[Unit]
Description=Lightweight Kubernetes
Documentation=https://k3s.io
After=network.target
[Service]
ExecStartPre=-/sbin/modprobe overlay
ExecStart=/usr/local/bin/k3s server
KillMode=process
Delegate=yes
LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity
[Install]
WantedBy=multi-user.target