Skip to content

Write Kubernetes controller in any programming language. Try out APIs of metacontroller.

Notifications You must be signed in to change notification settings

shovanmaity/metacontroller-by-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.