Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.
/ kube-imagepuller Public archive

Pull container images to your nodes so that they are already present when containers are launched

Notifications You must be signed in to change notification settings

itaysk/kube-imagepuller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notice! This project is unmaintained. You can use https://openkruise.io/en-us/docs/imagepulljob.html as an alternative

Pull container images to your nodes so that they are already present when containers are launched.

This repo was created following this gist: https://gist.github.com/itaysk/7bc3e56d69c4d72a549286d98fd557dd from this blog post: http://blog.itaysk.com/2017/12/26/the-single-use-daemonset-pattern-and-prepulling-images-in-kubernetes.

Usage

With Helm

See the Helm chart readme for comperhansive information, here's an example:

git clone https://github.com/itaysk/kube-imagepuller
cd kube-imagepuller
helm install imagepuller --set src.image=docker://index.docker.io/from/this:tag --set dst.image=docker-daemon:to/that:tag

Without Helm

You can use imagepuller.yaml which is generated from the Helm chart using

helm template imagepuller > imagepuller.yaml
  1. Download the rendered manifest:
curl -L -O https://raw.githubusercontent.com/itaysk/kube-imagepuller/master/imagepuller.yaml
  1. Edit the important parameters, most importantly the source, and destination images at:
spec.template.spec.initContainers[0].command
  1. Create in Kubernetes:
kubectl create -f imagepuller.yaml

About

Pull container images to your nodes so that they are already present when containers are launched

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published