Skip to content

Latest commit

 

History

History
31 lines (28 loc) · 4.41 KB

readme.md

File metadata and controls

31 lines (28 loc) · 4.41 KB

Learn metacontroller APIs by running them in your local system.

Metacontroller is one way to write a Kubernetes controller in any language. It is a Kubernetes controller administration that runs in cluster scope and manages your controllers. It works like the pub-sub model. For your every controller you need to write a controller spec. Once you apply that spec your controller is subscribed to the metacontroller. According to controller spec, the metacontroller triggers sync and finalize hooks.

You can write your controller logic in any language. Once you subscribe to metacontroller, it makes POST requests with the current state. Your controller needs to respond with the desired state. The metacontroller server then executes a control loop on behalf of your controller and calls sync and finalize hook functions whenever necessary.