Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 2.01 KB

README.md

File metadata and controls

41 lines (31 loc) · 2.01 KB

k8s Images Puller

The puller periodically pulls image(s) to k8s cluster nodes to save the time of pulling images when launching new pods.

These are the Docker Hub autobuild images located here.

License Build Status Docker Image Size (latest semver) Docker Image Version (latest semver) Docker codecov

Usage

** Helm **

Helm chart has been moved to HowDevOps/helm-charts repository.

** Docker **

Parameters as ENV variables

Variable Description Mandatory Default
IMAGES List of images to be pulled, separated by , Yes null
INTERVAL Time interval, eg: 30s, 5m, 1h, ... more No 60m
JSONLOG Toggle for JSON log format No false
DOCKER_USERNAME username to login to docker registry No ""
DOCKER_PASSWORD password to login to docker registry No ""
DOCKER_SERVER server to login to docker registry No ""

Run a Docker container

docker run --name puller -e IMAGES=busybox,alpine -e INTERVAL=60m -v /var/run/docker.sock:/var/run/docker.sock -d locnh/k8s-puller

Contribute

  1. Fork me
  2. Make changes
  3. Create pull request
  4. Grab a cup of tee and enjoy