Commit 864ed2a4 authored by Brad Davidson's avatar Brad Davidson Committed by Brad Davidson

Set User in k3s systemd unit

This ensures that the $HOME and $USER env vars get set. We have worked around this on the RKE2 side by setting it manually in the default .env file: https://github.com/rancher/rke2/blob/master/bundle/lib/systemd/system/rke2-server.env This is required for loading credentials from shared credentials files (`/root/.aws/credentials`) Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com>
parent 8aa543eb
......@@ -993,6 +993,7 @@ EnvironmentFile=-/etc/sysconfig/%N
EnvironmentFile=-${FILE_K3S_ENV}
KillMode=process
Delegate=yes
User=root
# 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
......
527dc64257a261b83042eb550f24648d2664656e8aef3d4633ac2a746848c6ae install.sh
9d5fc42bf825d3e8dcc8682c8bac071b1de18019af81f85519ccbe5c919e0896 install.sh
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment