/SAGE-Predeployer

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

SAGE Predeployer

Setup

  1. Install poetry
pip3 install poetry
  1. Install the packages for the project
poetry install
  1. Enter the shell
poetry shell
  1. Install and setup doctl

Structure

  • input contains the optimal solutions generated by sage for different use cases,
  • output has 3 folders sage, boreas and k8s, that contain the optimal solutions translated to manifest files,
  • templates Jinja2 templates for the manifest files,
  • src source code for the predeployer.

Run

To run the program, simply go to the inputs folder and place the desired use case in the schema.json file and then execute:

./run.sh

After some time, the cluster should be up and running, and you will have the manifest files in a folder inside the output under each scheduler. Then simply run:

kubectl apply -f output/
watch kubectl get pods -o wide