Skip to content

wilbeibi/2017-KubeCon-EU

 
 

Repository files navigation

2017-kubecon-eu

This repository contains code for KubeCon EU 2017 that implements a simple controller that watches for a Third Party Resource called Backup. When the controller receives any event on Backup, it fetches the state of some part of the cluster in which it's running and logs it to the console.

See below for usage instructions.

Install the Watcher

Install the watcher to your cluster with the following command:

helm install --name=kubecon-watcher --namespace=default --set docker.tag=c0ffcab ./charts/watcher

Note that the watcher may restart a few times and even go into CrashLoopBackOff until the Backup third party resource definition it relies upon is created. This behavior is expected, and good practice.

Install a Backup

To tell the watcher to back up all pods, create a Backup in the cluster:

helm install --name=kubecon-backup --namespace=default ./charts/backup

Clean Up

Simply run the following command to clean up:

helm delete --purge kubecon-watcher kubecon-backup

About

Code for KubeCon EU 2017

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 93.6%
  • Makefile 5.1%
  • Dockerfile 1.3%