RSS Amplifier

~aorith · Nov 13, 2024

pre-pulling k8s images

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

I was surprised to learn that Kubernetes doesn't include a built-in mechanism to pre-pull images before initiating a deployment rollout. In my mind, it makes perfect sense to pull the image before any other action. Of course, this choice aligns with the Kubernetes philosophy of managing stateless, ephemeral workloads where multiple replicas and nodes are expected to mitigate the impact of pod…

I was surprised to learn that Kubernetes doesn't include a built-in mechanism to pre-pull images before initiating a deployment rollout. In my mind, it makes perfect sense to pull the image before any other action.</p>

Of course, this choice aligns with the Kubernetes philosophy of managing stateless, ephemeral workloads where multiple replicas and nodes are expected to mitigate the impact of pod startup times.</p>

However, in real-world scenarios, conditions are often less than ideal. I'm sure that this won't be the last time that I encounter a single-replica application with frequent updates that requires the fastest possible pod startup time.</p>

common solutions</h2>

I've seen people run DaemonSets</code> to pre-pull the images, use cache registries or even deploy operators that manage multiple-image caches.</p>

Here are some examples:</p>

Read on /blog/pre-pulling-k8s-images/

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.