-
Notifications
You must be signed in to change notification settings - Fork 57
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
Document using Spegel with pull through registries #277
Comments
@onedr0p I created a new issue for this as it is not realted to k3s, and can be fixed with more documentation. |
Thanks @phillebaba, in the meantime do you have any tips on how to get that working? I don't mind contributing to the docs if I can get it working on my end. |
Could you check the docs added to #280 and see if this is enough? |
@phillebaba I thought about doing it that way to begin with but how does spegel know how to fetch the container from my The config I have for |
To explain a bit further, I am using a spegel:
additionalMirrorRegistries:
# not sure if this works since zot is configured via paths to handle the individual registries
- https://zot.example.com
# how would spegel know to pull on dockerhub images from here?
- https://zot.example.com/v2/docker.io
# how would spegel know to pull on ghcr images from here?
- https://zot.example.com/v2/ghcr.io |
Zot seems to manage pull through caches in a similar way to Harbor. I have never been a fan of this solution as it changes the original registry endpoint. The mirror configuration component of Spegel is not a critical component of this project and is more of a helper to simplify setup of Spegel. You could in theory disable this and create your own mirror configuration. This is probably a challenge for most people using a pull through cache no matte the flavor, so it needs to be fixed. I will have to think about the best configuration option here as I do not want to redo it in another 6 months. My idea is to add a boolean called |
@phillebaba I don't know if this is related, but I just want to point out how K3s' fork of Containerd handles these cases. They especially added support for regristry rewrites that we are using for exactly this use case, so that we can use our Harbor instance as a pull-through cache for docker hub. See the documentation here: https://docs.k3s.io/installation/private-registry#rewrites Unfortunately they never managed to get this merged upstream at Containerd. |
@ChristianCiach it looks like spegel might be baked into k3s as a optional feature which probably covers that use-case (for k3s anyways). See: k3s-io/k3s#8977 |
Hey folks, any update on this? |
That's a bit unfortunate since the docs state:
I was hoping to use spegel in my cluster and zot as a pull thru cache deployed elsewhere. For what it's worth this is my current containerd mirrors:
I don't see a way to have spegel take over this responsibility it seems like you either have spegel or a pull thru cache, maybe this can be a feature request?
Originally posted by @onedr0p in #212 (comment)
The text was updated successfully, but these errors were encountered: