Commit b5709dbc authored by liliars's avatar liliars
Browse files

changes on readme and adding a json post example

parent 57c1289d
......@@ -8,6 +8,14 @@ When a job is running, the controller will observe the total cluster utilisation
Also, if a new job is submitted with a different "max_ram" or "max_cpu", the controller will use the minimum between the new value and the one being considered at the time. This way, the thresholds defined for both jobs end up being respected at some level.
## Requirements
In order to collect the usage metrics from a Kubernetes cluster, Adaptive Kubejobs uses the [metrics-server](https://github.com/kubernetes-incubator/metrics-server) approach, as suggested by the Kubernetes community itself. This way, we require:
* metrics-server should be installed in all nodes of the k8s cluster you use with Asperathos
To install `metrics-server`, follow their tutorial [here](https://github.com/kubernetes-incubator/metrics-server/blob/master/README.md).
## Installing Adaptive Kubejobs
Send a ```POST``` request to `<your_asperathos_url:port>/plugins` with the following JSON as body:
......@@ -21,7 +29,7 @@ Send a ```POST``` request to `<your_asperathos_url:port>/plugins` with the follo
}
```
You can also create a json file named `adaptive-kubejobs.json`, for instance, and use the `curl` command as follows:
You can also create a json file named `adaptive-kubejobs.json`, for instance, paste the content above and use the `curl` command as follows:
```bash
$ curl -H "Content-Type: application/json" --data @adaptive-kubejobs.json <your_asperathos_url:port>/plugins
......
{
"plugin_source": "https://git.lsd.ufcg.edu.br/asperathos-custom/adaptive-kubejobs",
"install_source": "git",
"plugin_module": "adaptive_kubejobs",
"component": "controller",
"plugin_name": "adaptive_kubejobs"
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment