You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2015/05/20 12:41:05 UTC

stratos git commit: Adding kubernetes cluster 2 with two minions for samples

Repository: stratos
Updated Branches:
  refs/heads/master d5a4932c3 -> 764f7dbe5


Adding kubernetes cluster 2 with two minions for samples


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/764f7dbe
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/764f7dbe
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/764f7dbe

Branch: refs/heads/master
Commit: 764f7dbe50834b75f8a1e53843e67cc63c00a013
Parents: d5a4932
Author: Imesh Gunaratne <im...@apache.org>
Authored: Wed May 20 16:10:29 2015 +0530
Committer: Imesh Gunaratne <im...@apache.org>
Committed: Wed May 20 16:10:57 2015 +0530

----------------------------------------------------------------------
 .../artifacts/application.json                  |  2 +-
 .../kubernetes-cluster-2.json                   | 60 ++++++++++++++++++++
 .../kubernetes/network-partition-1.json         |  2 +-
 3 files changed, 62 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/764f7dbe/samples/applications/simple/single-cartridge-app/artifacts/application.json
----------------------------------------------------------------------
diff --git a/samples/applications/simple/single-cartridge-app/artifacts/application.json b/samples/applications/simple/single-cartridge-app/artifacts/application.json
index 6e66fe3..7c709f9 100644
--- a/samples/applications/simple/single-cartridge-app/artifacts/application.json
+++ b/samples/applications/simple/single-cartridge-app/artifacts/application.json
@@ -6,7 +6,7 @@
         "cartridges": [
             {
                 "type": "php",
-		"cartridgeMin": 1,
+                "cartridgeMin": 1,
                 "cartridgeMax": 10,
                 "subscribableInfo": {
                     "alias": "my-php",

http://git-wip-us.apache.org/repos/asf/stratos/blob/764f7dbe/samples/kubernetes-clusters/kubernetes-cluster-2.json
----------------------------------------------------------------------
diff --git a/samples/kubernetes-clusters/kubernetes-cluster-2.json b/samples/kubernetes-clusters/kubernetes-cluster-2.json
new file mode 100644
index 0000000..6e2ac93
--- /dev/null
+++ b/samples/kubernetes-clusters/kubernetes-cluster-2.json
@@ -0,0 +1,60 @@
+{
+    "clusterId": "kubernetes-cluster-2",
+    "description": "Kubernetes Cluster 2",
+    "kubernetesMaster": {
+        "hostId": "master",
+        "hostname": "master.dev.kubernetes.org",
+        "privateIPAddress": "172.17.8.101",
+        "publicIPAddress": "172.17.8.101",
+        "property": [
+        ]
+    },
+    "portRange": {
+        "upper": "5000",
+        "lower": "4500"
+    },
+    "kubernetesHosts": [
+        {
+            "hostId": "minion-1",
+            "hostname": "minion-1.dev.kubernetes.org",
+            "privateIPAddress": "172.17.8.102",
+            "publicIPAddress": "172.17.8.102",
+            "property": [
+            ]
+        },
+        {
+            "hostId": "minion-2",
+            "hostname": "minion-2.dev.kubernetes.org",
+            "privateIPAddress": "172.17.8.103",
+            "publicIPAddress": "172.17.8.103",
+            "property": [
+            ]
+        }
+    ],
+    "property": [
+        {
+            "name": "payload_parameter.MB_IP",
+            "value": "172.17.8.1"
+        },
+        {
+            "name": "payload_parameter.MB_PORT",
+            "value": "1883"
+        },
+        {
+            "name": "payload_parameter.CEP_IP",
+            "value": "172.17.8.1"
+        },
+        {
+            "name": "payload_parameter.CEP_PORT",
+            "value": "7711"
+        },
+        {
+            "name": "payload_parameter.LOG_LEVEL",
+            "value": "DEBUG"
+        },
+        {
+            "name": "payload_parameter.METADATA_SERVICE_URL",
+            "value": "https://172.17.8.1:9443"
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/764f7dbe/samples/network-partitions/kubernetes/network-partition-1.json
----------------------------------------------------------------------
diff --git a/samples/network-partitions/kubernetes/network-partition-1.json b/samples/network-partitions/kubernetes/network-partition-1.json
index 90c6776..bb27086 100644
--- a/samples/network-partitions/kubernetes/network-partition-1.json
+++ b/samples/network-partitions/kubernetes/network-partition-1.json
@@ -7,7 +7,7 @@
             "property": [
                 {
                     "name": "cluster",
-                    "value": "kubernetes-cluster-1"
+                    "value": "kubernetes-cluster-2"
                 }
             ]
         }