-
Notifications
You must be signed in to change notification settings - Fork 348
Add support for pull-through cache with registry #1196
Comments
SGTM |
Agreed. Unless there is an existing wild card pattern of use in the space we should try to be consistent with our introductions of wildcarding. |
+1, I think supporting |
@awprice Would you like to contribute a PR for this? :) |
@Random-Liu I would be happy to. No guarantees it will be ready for the 1.3 due date (if there is one), but I can give it a crack. |
@awprice Thanks! :D |
In Docker the This is actually not a configuration limitation but spec and client limitation today. See containerd/containerd#3451 and opencontainers/distribution-spec#66. I would like to try and get this fixed for 1.3, first RC is mid August. |
Apologies, I must of been mistaken. |
We'd like to configure a pull-through cache for containerd, so that any images that are pulled by containerd/cri, are pulled through a local registry. This way the image can be cached for multiple Kubernetes nodes in the local registry.
With docker, we can configure this with
--registry-mirror=<uri>
and all image pulls are done through the URI specified.See Docker documentation on how to configure the pull-through cache - https://docs.docker.com/registry/recipes/mirror/
With containerd/cri, we can only configure a registry mirror per host, like so:
This would require us to determine all of the possible hosts that we pull from and list them in the containerd config, with our local registry as the endpoint.
I believe #351 isn't properly solved, as
--registry-mirror
in Docker is able to catch all image pulls and pass them through the local registry.Ideally we could update the image pull registry logic to allow wildcard hosts, like so:
Thoughts?
The text was updated successfully, but these errors were encountered: