-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-import images into the embedded registry while k3s is running #9759
Comments
The Spegel embedded registry mirror only supports mirroring things that can be loaded into containerd's image store. It has no store of its own. Containerd does not, as far as I know, support storing arbitrary OCI artifacts in its image store. Feel free to open an issue at https://github.com/XenitAB/spegel and/or https://github.com/containerd/containerd - once they support it, we can too. |
Or perhaps I'm misunderstanding what you mean by "miscellaneous" / "arbitrary" OCI images. Are you just asking for periodic re-import of tarballs from the images directory, instead of only importing them on startup? That's been asked for in the past, but hasn't been prioritized. Homebrewing something with |
As an example, I want to deploy bitnami/zookeeper to k3s in an airgapped environment.
But I can't load the zookeeper.tar containing the container image into the new embedded registry, without manually running |
Thanks for the additional context. I'll leave this on the backlog. |
Autoloading approach can also help with managing image load times by deferring image imports for #9242 |
Validated in each minor issue #11559 (comment) |
Is your feature request related to a problem? Please describe.
k3s can load a bunch of resources from disk:
/var/lib/rancher/k3s/server/manifests
/var/lib/rancher/k3s/server/static/charts
/var/lib/rancher/k3s/agent/images/k3s-airgap-images-amd64.tar.zst
With the new embedded registry, it'd be nice to also have a directory that can auto-load in miscellaneous OCI images (similar to
k3s-airgap-images-amd64.tar.zst
, but for arbitrary images). Especially in an edge/airgapped environment.Describe alternatives you've considered
A crontab that finds files in a local directory and
k3s ctr images import
each TAR file 😓The text was updated successfully, but these errors were encountered: