summaryrefslogtreecommitdiffstats
path: root/roles/pods/files
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2014-09-16 13:15:48 -0400
committerKenny Woodson <kwoodson@redhat.com>2014-09-16 13:15:48 -0400
commit5994dee9a8b3b1ee97f9e3b3529fd32ffb896187 (patch)
tree4c17abdd1e5b39e845d33d7d970ac216a82d766d /roles/pods/files
downloadopenshift-5994dee9a8b3b1ee97f9e3b3529fd32ffb896187.tar.gz
openshift-5994dee9a8b3b1ee97f9e3b3529fd32ffb896187.tar.bz2
openshift-5994dee9a8b3b1ee97f9e3b3529fd32ffb896187.tar.xz
openshift-5994dee9a8b3b1ee97f9e3b3529fd32ffb896187.zip
Initial Commit. Sharing is caring
Diffstat (limited to 'roles/pods/files')
-rw-r--r--roles/pods/files/pods/fedora_apache.json21
-rw-r--r--roles/pods/files/pods/frontend-controller.json23
-rw-r--r--roles/pods/files/pods/redis-master-service.json10
-rw-r--r--roles/pods/files/pods/redis-master.json22
-rw-r--r--roles/pods/files/pods/redis-slave-controller.json24
-rw-r--r--roles/pods/files/pods/redis-slave-service.json13
6 files changed, 113 insertions, 0 deletions
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"
+ }
+}