sample-controller

command
v0.0.0-...-0bd438f Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

README

Sample Controller

This is a sample controller that uses kubehandler. It can be used as a starting point for your very own kubernetes controller.

Setup

Run make to build the sample controller.

You will need a service account and a clusterrolebinding which you can create by running:

$ kubectl create serviceaccount logging-controller
$ kubectl create clusterrolebinding logging-controller-admin-binding --clusterrole=view --serviceaccount=default:logging-controller

To run it locally and set it up with a local minikube cluster, you can run:

make minikube-dev

You can then view the logs of the logging-controller pod to view pods.

$ kubectl logs -f <logging controller pod name here>

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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