Demo Controller
Goal
The goal of this project is to demonstrate how you can build a simple Kubernetes controller.
This is not meant as a project to be used directly - but rather as a reference point to build your own custom controllers.
This example is currently based off client-go v3.0.0-beta.0 - but will be updated as new versions become available.
Helpful Resources
-
Upstream controller development and design principles
-
Upstream Kubernetes controller package
-
client-go examples (version sensitive, e.g. use v3 examples with v3 checkout)
-
Creating Kubernetes Operators Presentation (@metral)
-
Memcached operator written in python (@pst)
Roadmap
- Demonstrate using
- leader-election
- Third Party Resources
- Shared Informers
- Events
Building
Build agent and controller binaries:
make clean all
Build agent and controller Docker images:
make clean images