image-clone-controller

command module
v0.0.0-...-b090f33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2021 License: MIT Imports: 13 Imported by: 0

README

image-clone-controller

  • Based on controller-runtime.
  • Language used Golang.
  • Watches deployments and daemonsets. In case image not found in backup registery, the image is pulled > tagged > pushed to backupregistery.
  • The deployments and daemonsets are patched with the image in backup registery and a annotations backup: true.
  • Authentication to registery is basic auth, set env to USERNAME and PASSWORD.

Run locally

- export USERNAME=   #dockerhub username
- export PASSWORD=   #dockerhub password
- export REGISTERY=docker.io/imageclonecontroller/backup-registery #dockerhub registery
- export DENY_LIST=kube-system
- export WATCH_NAMESPACE=nginx
- kubectl create ns nginx
- go build -o controller
- ./controller

RUN in cluster

- kubectl create ns nginx
- kubectl apply -f configs/

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL