Add Consul support to 'OneClick' deployment.
[oom.git] / kubernetes / config / docker / init / src / config / consul / consul-agent-config / aai-sparky-be-health.json
diff --git a/kubernetes/config/docker/init/src/config/consul/consul-agent-config/aai-sparky-be-health.json b/kubernetes/config/docker/init/src/config/consul/consul-agent-config/aai-sparky-be-health.json
new file mode 100644 (file)
index 0000000..6af58db
--- /dev/null
@@ -0,0 +1,14 @@
+{
+  "service": {
+    "name": "A&AI UI Backend Service",
+    "checks": [
+      {
+        "id": "sparky-be-process",
+        "name": "UI Backend Presence",
+        "script": "/consul/config/scripts/sparky-be-script.sh",
+        "interval": "15s",
+        "timeout": "1s"
+      }
+    ]
+  }
+}