The ServerScalingService controls the deployment of more servers of specific types, to ensure there is always enough capacity. Right now it communicates only with the kubernetes backend but it may start to communicate with Openshift as well to deploy more nodes.
Request:
The name should must the gameId!
{
"name": "mg_gw",
"image": "exorath/mg_gw:0.0.1",
"terminationGracePeriodSeconds": 1000,
"env": {
"key1": "value1",
"key2": "value2"
},
"labels": {}
}
Response:
{
"success": true
}
Request:
{
"image": "exorath/bungee:0.0.1",
"terminationGracePeriodSeconds": 1000,
"env": {
"key1": "value1",
"key2": "value2"
},
"labels": {}
}
Response:
{
"success": true
}
Name | Value |
---|---|
MONGO_URI | {mongo_uri} |
DB_NAME | {db name to store data} |
CONNECTOR_SERVICE_ADDRESS | {ConnectorService ip:port} |
KUBERNETES_ADDRESS | {Kubernetes url} |