diff --git a/k3s.service b/k3s.service new file mode 100644 index 0000000000..a43995c606 --- /dev/null +++ b/k3s.service @@ -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