https://rancher.com/ logo
Title
c

cuddly-egg-57762

08/11/2022, 8:14 AM
good morning good people, is there a way to pass a local chart tar archive to the helm-install job pod which is responsible to deploy an Helm manifest file? I want to install metallb in an offline environment so I put the images under the
/var/lib/rancher/k3s/agent/images/
and specified a manifest file in
/var/lib/rancher/k3s/server/manifests/
. The problem of course, since it is airgapped, it's that the job pod report the following error:
Error: failed to download "metallb/metallb" at version "0.12.1"
How may I provide to the job pod a tar.gz with the chart definition? Is it possible? Thanks in advance for your help
c

creamy-pencil-82913

08/15/2022, 8:06 PM
You need to restart k3s after adding a tarball to the agent/images folder. The tarballs in that directory are only imported at startup.
a better, more reliable solution for airgapped clusters is to set up a private registry
c

cuddly-egg-57762

08/29/2022, 12:34 PM
I think I'll apply the second solution since it also help me with future upgrades. Thanks as always