2017-kubecon-eu

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

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

Go to latest
Published: Mar 30, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

README

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

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