-
Notifications
You must be signed in to change notification settings - Fork 20
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
Support running the registry cache with a tmpfs volume #256
Comments
Hi @diamondburned,
While this works in the usual case when the registry-cache is up and running, but this won't work in the case the registry-cache is not available and containerd has to fall back to the upstream.
I don't recommend you to NOT specify image pull Secrets. If the image pull Secret is not present it won't be able to pull the image from the upstream when the registry-cache is not available.
I think we understand your use case. You are actually NOT interested in reduce networking traffic and costs to upstream registries but you are only interested in eliminating image pull Secrets. |
Thank you so much for the detailed and helpful response!
Yes, this is correct. We see the caching as a nice bonus that people can choose to enable, but we want to make it optional. If the user chooses to enable it, then we're fine with allocating an actual volume.
I think this is a reasonable point. I know that
Using |
The underlying API/contract of containerd we use is Registry Configuration. It is possible to specify headers and certificates. But I guess this won't help you with image pull Secrets. |
How to categorize this issue?
/kind enhancement
What would you like to be added:
The extension should permit configuring the registry cache to utilize a tmpfs (RAM-based) volume rather than needing an actual volume via persistent volume claims.
Why is this needed:
My original use case for using the registry cache extension is to allow users to pull images without needing to configure registry credentials every time they use the image. This extension solves this use case by running a local image registry that automatically utilizes the given registry credentials.
Unfortunately, the registry cache also requires a volume to be allocated to it for the actual image registry cache. After all, this is its intended purpose. However, this is not part of my use case, and I would rather avoid needing to allocate a new volume for each user for this reason.
Possible implementation:
A simple (but untested) way to do this would simply be to replace the
PersistentVolumeClaim
with an actualVolume
whoseVolumeSource
is set toEmptyDir/StorageMediumHugePages
.Show (pseudo) diffs
A
Type
flag could be introduced togardener-extension-registry-cache/pkg/apis/registry/v1alpha3.Volume
to allow for this:The text was updated successfully, but these errors were encountered: