why do i need to pull images over and over again? #6360
-
I need to load the same images over and over again. Is there a way to say k3s to “persist” the images, so that I don’t have to pull them again? When I run I tried to set
What I’m doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Images are pruned when you get low on disk space on the image filesystem. Raising the GC thresholds isn't a great idea, you'll probably just run out of space and have a completely different set of problems. The best way to resolve this is just to use a larger disk on your node. Also, that's not the right syntax for a yaml file. You'd want something like: kubelet-arg:
- image-gc-high-threshold=99
- image-gc-low-threshold=98 If pulling images is slow, you may want to look into setting up a local registry mirror, where you can have more control over which images are cached and for how long. |
Beta Was this translation helpful? Give feedback.
-
For testing purposes, I tainted all but one of the worker nodes. After the pod crashes, it keeps restarting. This results in multiple instances of the pod on the node in different states, which triggers the DiskPressure event. The question for me is why doesn't containerd recognize that the container is not available for the architecture and pull the container and try to start it. But this is an off-topic question here, I think. Thank you for your valuable assistance. |
Beta Was this translation helpful? Give feedback.
Images are pruned when you get low on disk space on the image filesystem. Raising the GC thresholds isn't a great idea, you'll probably just run out of space and have a completely different set of problems. The best way to resolve this is just to use a larger disk on your node.
Also, that's not the right syntax for a yaml file. You'd want something like:
If pulling images is slow, you may want to look into setting up a local registry mirror, where you can have more control over which images are cached and for how long.