Skip to content

K8S Operator that ensures that docker images will be pre-pulled on all cluster nodes

License

Notifications You must be signed in to change notification settings

Cdayz/k8s-image-pre-puller

Repository files navigation

K8S Image Pre Puller

CI

It's a simple kubernetes operator that will help you automatically pre-pull docker images on nodes. This operator can be used for speed-up pod initialization in cluster.

How to use

Install

You can install this operator by installing it through Helm Chart

Create PrePullImage

When operator installed in cluster you can simply create resources like this:

apiVersion: images.cdayz.k8s.extensions/v1
kind: PrePullImage
metadata:
  name: my-cool-image-pre-pull
  namespace: my-namespace
spec:
  image: "gcr.io/my-cool-image"

Or you can specify nodeSelector to pre-pull image only on particular nodes.

apiVersion: images.cdayz.k8s.extensions/v1
kind: PrePullImage
metadata:
  name: my-cool-image-pre-pull
  namespace: my-namespace
spec:
  image: "gcr.io/my-cool-image"
  nodeSelector:
    ssd: "true"
    feature.nvidia-runtime: "true"
    ...

This operator automatically will create a DaemonSet for create pre-pulling pods on every existing node.

IMPORTANT: This operator creates a DaemonSet and it will create Pod's in cluster - this pods will consume resources according to configuration. It's important to have monitoring about this resources.

About

K8S Operator that ensures that docker images will be pre-pulled on all cluster nodes

Topics

Resources

License

Stars

Watchers

Forks

Packages