support 'k3s server --data-dir' to put k3s server files in a non-standard location

Signed-off-by: clambin <christophe.lambin@gmail.com>
This commit is contained in:
clambin committed 2021-07-10 15:10:53 +02:00
1 parent ef8d3a1949
commit 98d388c9fa
3 files changed
+8 -6

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ After=network-online.target
Type=notify
ExecStartPre=-/sbin/modprobe br_netfilter
ExecStartPre=-/sbin/modprobe overlay
ExecStart=/usr/local/bin/k3s server {{ extra_server_args | default("") }}
ExecStart=/usr/local/bin/k3s server --data-dir {{ k3s_server_location }} {{ extra_server_args | default("") }}
KillMode=process
Delegate=yes
# Having non-zero Limit*s causes performance problems due to accounting overhead