From d1d7864337bfb527ae0e281276fe6d2f95ff14a2 Mon Sep 17 00:00:00 2001 From: shkuviak <75165555+shkuviak@users.noreply.github.com> Date: Thu, 4 Jan 2024 20:54:22 +0100 Subject: [PATCH] k3s agent - Fix bad reference to k3s-agent.service.env in k3s-agent.service (#283) Signed-off-by: Nicolas JENDROWIAK <75165555+shkuviak@users.noreply.github.com> --- roles/k3s_agent/templates/k3s-agent.service.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/k3s_agent/templates/k3s-agent.service.j2 b/roles/k3s_agent/templates/k3s-agent.service.j2 index 59261e3..adb39cf 100644 --- a/roles/k3s_agent/templates/k3s-agent.service.j2 +++ b/roles/k3s_agent/templates/k3s-agent.service.j2 @@ -11,7 +11,7 @@ WantedBy=multi-user.target Type=notify EnvironmentFile=-/etc/default/%N EnvironmentFile=-/etc/sysconfig/%N -EnvironmentFile=-/etc/systemd/system/k3s.service.env +EnvironmentFile=-/etc/systemd/system/k3s-agent.service.env KillMode=process Delegate=yes # Having non-zero Limit*s causes performance problems due to accounting overhead @@ -26,4 +26,4 @@ RestartSec=5s ExecStartPre=/bin/sh -xc '! /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service' ExecStartPre=-/sbin/modprobe br_netfilter ExecStartPre=-/sbin/modprobe overlay -ExecStart=/usr/local/bin/k3s agent --data-dir {{ k3s_server_location }} --server https://{{ api_endpoint }}:{{ api_port }} --token {{ token }} {{ extra_agent_args }} \ No newline at end of file +ExecStart=/usr/local/bin/k3s agent --data-dir {{ k3s_server_location }} --server https://{{ api_endpoint }}:{{ api_port }} --token {{ token }} {{ extra_agent_args }}