From 5994dee9a8b3b1ee97f9e3b3529fd32ffb896187 Mon Sep 17 00:00:00 2001
From: Kenny Woodson <kwoodson@redhat.com>
Date: Tue, 16 Sep 2014 13:15:48 -0400
Subject: Initial Commit.  Sharing is caring

---
 roles/pods/files/pods/fedora_apache.json          | 21 ++++++++++++++++++++
 roles/pods/files/pods/frontend-controller.json    | 23 ++++++++++++++++++++++
 roles/pods/files/pods/redis-master-service.json   | 10 ++++++++++
 roles/pods/files/pods/redis-master.json           | 22 +++++++++++++++++++++
 roles/pods/files/pods/redis-slave-controller.json | 24 +++++++++++++++++++++++
 roles/pods/files/pods/redis-slave-service.json    | 13 ++++++++++++
 6 files changed, 113 insertions(+)
 create mode 100644 roles/pods/files/pods/fedora_apache.json
 create mode 100644 roles/pods/files/pods/frontend-controller.json
 create mode 100644 roles/pods/files/pods/redis-master-service.json
 create mode 100644 roles/pods/files/pods/redis-master.json
 create mode 100644 roles/pods/files/pods/redis-slave-controller.json
 create mode 100644 roles/pods/files/pods/redis-slave-service.json

(limited to 'roles/pods/files')

diff --git a/roles/pods/files/pods/fedora_apache.json b/roles/pods/files/pods/fedora_apache.json
new file mode 100644
index 000000000..54eb712c2
--- /dev/null
+++ b/roles/pods/files/pods/fedora_apache.json
@@ -0,0 +1,21 @@
+{
+  "id": "apache",
+  "desiredState": {
+    "manifest": {
+      "version": "v1beta1",
+      "id": "apache-1",
+      "containers": [{
+        "name": "master",
+        "image": "fedora/apache",
+        "ports": [{
+          "containerPort": 80,
+          "hostPort": 80
+        }]
+      }]
+    }
+  },
+  "labels": {
+    "name": "apache",
+    "distro": "fedora"
+  }
+}
diff --git a/roles/pods/files/pods/frontend-controller.json b/roles/pods/files/pods/frontend-controller.json
new file mode 100644
index 000000000..1558724b6
--- /dev/null
+++ b/roles/pods/files/pods/frontend-controller.json
@@ -0,0 +1,23 @@
+{
+  "id": "frontendController",
+  "kind": "ReplicationController",
+  "apiVersion": "v1beta1",
+  "desiredState": {
+    "replicas": 2,
+    "replicaSelector": {"name": "frontend"},
+    "podTemplate": {
+      "desiredState": {
+         "manifest": {
+           "version": "v1beta1",
+           "id": "frontendController",
+           "containers": [{
+             "name": "php-redis",
+             "image": "brendanburns/php-redis",
+             "ports": [{"containerPort": 80, "hostPort": 8000}]
+           }]
+         }
+       },
+       "labels": {"name": "frontend"}
+      }},
+  "labels": {"name": "frontend"}
+}
diff --git a/roles/pods/files/pods/redis-master-service.json b/roles/pods/files/pods/redis-master-service.json
new file mode 100644
index 000000000..80808dcd6
--- /dev/null
+++ b/roles/pods/files/pods/redis-master-service.json
@@ -0,0 +1,10 @@
+{
+  "id": "redismaster",
+  "kind": "Service",
+  "apiVersion": "v1beta1",
+  "port": 10000,
+  "containerPort": 6379,
+  "selector": {
+    "name": "redis-master"
+  }
+}
diff --git a/roles/pods/files/pods/redis-master.json b/roles/pods/files/pods/redis-master.json
new file mode 100644
index 000000000..71acea530
--- /dev/null
+++ b/roles/pods/files/pods/redis-master.json
@@ -0,0 +1,22 @@
+{
+  "id": "redis-master-2",
+  "kind": "Pod",
+  "apiVersion": "v1beta1",
+  "desiredState": {
+    "manifest": {
+      "version": "v1beta1",
+      "id": "redis-master-2",
+      "containers": [{
+        "name": "master",
+        "image": "dockerfile/redis",
+        "ports": [{
+          "containerPort": 6379,
+          "hostPort": 6379
+        }]
+      }]
+    }
+  },
+  "labels": {
+    "name": "redis-master"
+  }
+}
diff --git a/roles/pods/files/pods/redis-slave-controller.json b/roles/pods/files/pods/redis-slave-controller.json
new file mode 100644
index 000000000..5c8d1ea30
--- /dev/null
+++ b/roles/pods/files/pods/redis-slave-controller.json
@@ -0,0 +1,24 @@
+{
+  "id": "redisSlaveController",
+  "kind": "ReplicationController",
+  "apiVersion": "v1beta1",
+  "desiredState": {
+    "replicas": 2,
+    "replicaSelector": {"name": "redisslave"},
+    "podTemplate": {
+      "desiredState": {
+         "manifest": {
+           "version": "v1beta1",
+           "id": "redisSlaveController",
+           "containers": [{
+             "name": "slave",
+             "image": "brendanburns/redis-slave",
+             "ports": [{"containerPort": 6379, "hostPort": 6380}]
+           }]
+         }
+       },
+       "labels": {"name": "redisslave"}
+      }},
+  "labels": {"name": "redisslave"}
+}
+
diff --git a/roles/pods/files/pods/redis-slave-service.json b/roles/pods/files/pods/redis-slave-service.json
new file mode 100644
index 000000000..f90a9be9f
--- /dev/null
+++ b/roles/pods/files/pods/redis-slave-service.json
@@ -0,0 +1,13 @@
+{
+  "id": "redisslave",
+  "kind": "Service",
+  "apiVersion": "v1beta1",
+  "port": 10001,
+  "containerPort": 6379,
+  "labels": {
+    "name": "redisslave"
+  },
+  "selector": {
+    "name": "redisslave"
+  }
+}
-- 
cgit v1.2.3