Closed yngveh closed 2 years ago
@yngveh apologies for the hassle but a work-around might be to leverage a k3s-addon skip-file, e.g.
sudo touch /var/lib/rancher/k3s/server/manifests/system-upgrade-controller.yaml.skip
and then copy the manifest to a different filename in the manifests dir and your changes will not be overwritten upon reboot.
@dweomer the suggesten work-around work as expected and solved the problem with rebooting.
I suppose the only thing to keep in mind is to manualy maintain future changes from the orginal controller yaml, as upgrades of the controller version.
Thanks for the solution!
Is your feature request related to a problem? Please describe. There seams to be no way to properly configure the system upgrade contoller with http proxy.
Describe alternatives you've considered
Editing the config map in /var/lib/rancher/k3s/server/manifests/system-upgrade-controller.yaml to include HTTPS_PROXY environment variable seems to be working, but this will not survive a reboot since the file is rsync'ed at boot (https://github.com/rancher/k3os/blob/master/overlay/libexec/k3os/boot#L159).
/var/lib/rancher/k3s/server/manifests/system-upgrade-controller.yaml