Whats the priority: /var/lib/rancher/rke2/agent/images/ or registries.yaml #4292
Unanswered
rogersollberger
asked this question in
Q&A
Replies: 1 comment 3 replies
-
crictl images <- can you see the new image, there before you update image in the deployment? I guess that the problem might be a race condition between updating the manifest with the new image and this gets applied within 1 minute and this happens even before the rke2 restart happend to add the image to the containerd local image repository. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
in the tarball method, i can copy all images to the /var/lib/rancher/rke2/agent/images/ folder and they get loaded when the rke2 service restarts. After that i copied a deployment manifest to the manifest folder which uses the image i copied to the images folder.
everything works fine.
now for this image, there is now a new version available. so i thought i copy the new image to the images folder (/var/lib/rancher/rke2/agent/images/) and also and updated manifest to the manifest folder and then restart the service.
my expectation was it will then use the new image. but he cannot pull this image now. and i wonder why?
Could it be, there is a registreis.yaml on the service in the meanwhile?
Is there a priority order which one rke2 uses first or an exclusion? i mean if a registries.yaml is in place images/ folder gets ignored.
Could someone help me in this behavior?
Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions