-
Notifications
You must be signed in to change notification settings - Fork 97
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
A flexible way to specify prefetch files to pull Nydus images #486
Comments
That's a reasonable extension, what do you think? cc @changweige |
SGTM. My only suggestion is to add the designated KV to annotations rather than POD label since the label is used for node selection and affinity. |
LGTM. I think there are three things we should consider.
|
Another question is how do we upload the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Users defined prefetch files list, which can be set to
--prefetch files
when starting the nydus daemon.Nydus has implemented the addition of the
-- prefetch-patterns
parameter to thenydusify convert
command. With this parameter, we can specify a prefetch list when converting nydus format images and pull files based on this prefetch list when starting a container. However, due to different services based on one image need to access different files, this method is not flexible enough. Here is another idea, users can customize prefetch lists and pull according to the required prefetch files when pulling images.Requirements
WorkFlow
Pod creation
During the pod creation period, complete the following process.
crictl
as below.image name + prefetch list file path
as a massage to snapshotter through the specified socket API.Pull image
When pulling an image, containerd will notify snapshot to start a new daemon. When starting nydusd, obtain the prefetch list file path from the global variable and add it to the -- prefetch files parameter.
After completing the startup of nydusd, identify the corresponding image name when pulling the image, and then pull according to the prefetch list.
The text was updated successfully, but these errors were encountered: