Add Consul support to 'OneClick' deployment.
[oom.git] / kubernetes / config / docker / init / src / config / consul / consul-agent-config / aai-services-health.json
diff --git a/kubernetes/config/docker/init/src/config/consul/consul-agent-config/aai-services-health.json b/kubernetes/config/docker/init/src/config/consul/consul-agent-config/aai-services-health.json
new file mode 100644 (file)
index 0000000..35f9371
--- /dev/null
@@ -0,0 +1,53 @@
+{
+  "service": {
+    "name": "Active and Available Inventory",
+    "checks": [
+      {
+        "id": "aai-service",
+        "name": "Core A&AI",
+        "http": "https://aai-service.onap-aai:8443/aai/util/echo",
+        "header": {
+          "Authorization": ["Basic QUFJOkFBSQ=="],
+          "X-TransactionId": ["ConsulHealthCheck"],
+          "X-FromAppId": ["healthcheck"]
+        },
+        "tls_skip_verify": true,
+        "interval": "15s",
+        "timeout": "1s"
+      },
+      {
+        "id": "aai-resources",
+        "name": "Resources Microservice",
+        "http": "https://aai-resources.onap-aai:8447/aai/util/echo",
+        "header": {
+          "Authorization": ["Basic QUFJOkFBSQ=="],
+          "X-TransactionId": ["ConsulHealthCheck"],
+          "X-FromAppId": ["healthcheck"]
+        },
+        "tls_skip_verify": true,
+        "interval": "15s",
+        "timeout": "1s"
+      },
+      {
+        "id": "aai-traversal",
+        "name": "Traversal Microservice",
+        "http": "https://aai-traversal.onap-aai:8446/aai/util/echo",
+        "header": {
+          "Authorization": ["Basic QUFJOkFBSQ=="],
+          "X-TransactionId": ["ConsulHealthCheck"],
+          "X-FromAppId": ["healthcheck"]
+        },
+        "tls_skip_verify": true,
+        "interval": "15s",
+        "timeout": "1s"
+      },
+      {
+        "id": "gremlin-server",
+        "name": "Graph Data Store",
+        "script": "/consul/config/scripts/gremlin-script.sh",
+        "interval": "15s",
+        "timeout": "1s"
+      }
+    ]
+  }
+}