This component controls the nodes, using the control rules and the available metrics, through the actuators interfaces.
This component:
- reads containers list from a configuration files
- communicates with the actuators on each node to get the containers ids
- exposes endpoints to retrieve information about models and containers
The controller requires:
- Actuator: to get informations about the containers in the pods
- static models
- Read the config file with information about models and containers
- Start a K8s deployment with the same information in the config file
virtualenv env
source env/bin/activate
pip install -r requirements.txt
python main.py
See "rest-client.rest" for examples
DEFAULT PORT: 5001
Get the status of the component
Get the loaded models
Get the loaded models on the given node
Get the loaded containers
Get the loaded containers on the given node
Add a new model
Add a new container