This guide provide step-by-step instructions, how to add and update proxy settings at Node level after K3s installation.
Add Proxy Settings at the Node Level
Step-1: Add the proxy settings to /etc/environments
.
HTTP_PROXY=
HTTPS_PROXY=
NO_PROXY=localhost,127.0.0.1,10.42.0.1/8,10.43.0.1/8,<NODE_IPs>
Step-2: Login again with the same user for the proxy settings to function properly.
Step-3: Now, install the k3s.Step-4: The proxy settings listed above will also be added to
/etc/systemd/system/k3s.service.env
Update Proxy Settings at the Node Level
Step-1: Edit the proxy settings in /etc/systemd/system/k3s.service.env
Step-2: Now, use the following command to restart the k3s service:
systemctl restart k3s