Coder Social home page Coder Social logo

minhnt812018 / kube-imagepuller Goto Github PK

View Code? Open in Web Editor NEW

This project forked from itaysk/kube-imagepuller

0.0 1.0 0.0 3 KB

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

Smarty 93.28% Makefile 6.72%

kube-imagepuller's Introduction

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 pull 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

kube-imagepuller's People

Contributors

itaysk avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.