From 268113ec9016bd5f82a0e3ff03400ca1ad745fd4 Mon Sep 17 00:00:00 2001 From: Steffen Vogel <post@steffenvogel.de> Date: Wed, 13 Nov 2019 21:43:51 +0100 Subject: [PATCH] update example config for VILLAScontroller --- etc/villas/controller/config.json | 75 +++++++++++++++++++++++++------ 1 file changed, 61 insertions(+), 14 deletions(-) diff --git a/etc/villas/controller/config.json b/etc/villas/controller/config.json index a2966d9..26d28b6 100644 --- a/etc/villas/controller/config.json +++ b/etc/villas/controller/config.json @@ -1,21 +1,68 @@ { - "simulators" : [ + "components": [ { - "name" : "Dummy Simulator #1", - "type" : "dummy", - "realm" : "de.rwth-aachen.eonerc.acs", - "uuid" : "e15f5ad4-041f-11e8-9bf3-23372608bf60", - "location" : "Steffen's Laptop", - "owner" : "svo", - "endpoint" : "/ws/ws_sig" + "name": "Dummy Simulator #1", + "category": "simulator", + "type": "dummy", + "uuid": "e15f5ad4-041f-11e8-9bf3-23372608bf60", + "location": "Steffen's Laptop", + "owner": "svo", + "endpoint": "/ws/ws_sig" }, { - "name" : "Dummy Simulator #2", - "type" : "dummy", - "realm" : "de.rwth-aachen.eonerc.acs", - "uuid" : "ef6f6e46-044e-11e8-812f-17b6617a2f37", - "location" : "Markus' Laptop", - "owner" : "mgr" + "name": "Dummy Simulator #2", + "category": "simulator", + "type": "dummy", + "uuid": "ef6f6e46-044e-11e8-812f-17b6617a2f37", + "location": "Markus' Laptop", + "owner": "mgr" + }, + { + "name": "Central VILLASnode", + "category": "gateway", + "type": "villas-node", + "autostart": false, + "api": "http://host.docker.internal:8080" + }, + { + "name": "Kubernetes Controller", + "category": "controller", + "type": "kubernetes", + "config" : { + "host" : "host.docker.internal:8081", + "verify_ssl" : false, + "api_key" : { + "authorization" : "Bearer XXX" + } + }, + "namespace" : "sim", + "spec": { + "apiVersion": "batch/v1", + "kind": "Job", + "metadata": { + "name": "pi" + }, + "spec": { + "template": { + "spec": { + "containers": [ + { + "name": "pi", + "image": "perl", + "command": [ + "perl", + "-Mbignum=bpi", + "-wle", + "print bpi(2000)" + ] + } + ], + "restartPolicy": "Never" + } + }, + "backoffLimit": 4 + } + } } ] } -- GitLab