Skip to content

davex98/image-clone-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image-clone-controller

Table of Contents

Overview

It's an implementation of a controller which watches the applications and “caches” the images by re-uploading to our own registry repository and reconfiguring the applications to use these copies.

Project Structure

  • Dockerfile - Dockerfile, used for production to run within the cluster (running the application as nonroot)
  • controller - controller code, it is written using kubebuilder
  • repository - code that enables connecting to the repository on which the images will be re-uploaded
  • config - yml files that enable running the controller within the cluster

Prerequisites

Make sure you have installed all of the following prerequisites on your development machine:

How to

Run the controller

In order to run, you have to provide the dockersecret.yml file located in ~/.docker/config.json Then to run the controller you can simply use:

minikube start
make deploy_app

It will automatically deploy the controller on local cluster eg. Minikube.

Run the unit tests

In order to run the unit tests, run:

minikube start
make test

Asciinema proof of the controller working!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published