Skip to content

Commit

Permalink
Update examples/storm for v1beta3
Browse files Browse the repository at this point in the history
  • Loading branch information
bcbroussard committed Apr 24, 2015
1 parent 7505bed commit 6b27aa2
Show file tree
Hide file tree
Showing 5 changed files with 133 additions and 69 deletions.
26 changes: 19 additions & 7 deletions examples/storm/storm-nimbus-service.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
{
"id": "nimbus",
"kind": "Service",
"apiVersion": "v1beta1",
"port": 6627,
"containerPort": 6627,
"selector": { "name": "nimbus" },
"labels": { "name": "nimbus" }
}
"apiVersion": "v1beta3",
"metadata": {
"name": "nimbus",
"labels": {
"name": "nimbus"
}
},
"spec": {
"ports": [
{
"port": 6627,
"targetPort": 6627
}
],
"selector": {
"name": "nimbus"
}
}
}
38 changes: 23 additions & 15 deletions examples/storm/storm-nimbus.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
{
"id": "nimbus",
"kind": "Pod",
"apiVersion": "v1beta1",
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "nimbus",
"containers": [{
"name": "nimbus",
"image": "mattf/storm-nimbus",
"cpu": 100,
"ports": [{ "containerPort": 6627 }]
}]
"apiVersion": "v1beta3",
"metadata": {
"name": "nimbus",
"labels": {
"name": "nimbus"
}
},
"labels": {
"name": "nimbus"
"spec": {
"containers": [
{
"name": "nimbus",
"image": "mattf/storm-nimbus",
"ports": [
{
"containerPort": 6627
}
],
"resources": {
"limits": {
"cpu": "100m"
}
}
}
]
}
}
}
74 changes: 49 additions & 25 deletions examples/storm/storm-worker-controller.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,55 @@
{
"id": "storm-worker-controller",
"kind": "ReplicationController",
"apiVersion": "v1beta1",
"desiredState": {
"apiVersion": "v1beta3",
"metadata": {
"name": "storm-worker-controller",
"labels": {
"name": "storm-worker"
}
},
"spec": {
"replicas": 3,
"replicaSelector": {"name": "storm-worker"},
"podTemplate": {
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "storm-worker-controller",
"containers": [{
"name": "storm-worker",
"image": "mattf/storm-worker",
"cpu": 200,
"ports": [{"containerPort": 6700, "hostPort": 6700},
{"containerPort": 6701, "hostPort": 6701},
{"containerPort": 6702, "hostPort": 6702},
{"containerPort": 6703, "hostPort": 6703}]
}]
}
"selector": {
"name": "storm-worker"
},
"template": {
"metadata": {
"labels": {
"name": "storm-worker",
"uses": "nimbus"
}
},
"labels": {
"name": "storm-worker",
"uses": "nimbus"
"spec": {
"containers": [
{
"name": "storm-worker",
"image": "mattf/storm-worker",
"ports": [
{
"hostPort": 6700,
"containerPort": 6700
},
{
"hostPort": 6701,
"containerPort": 6701
},
{
"hostPort": 6702,
"containerPort": 6702
},
{
"hostPort": 6703,
"containerPort": 6703
}
],
"resources": {
"limits": {
"cpu": "200m"
}
}
}
]
}
}
},
"labels": {"name": "storm-worker"}
}
}
}
26 changes: 19 additions & 7 deletions examples/storm/zookeeper-service.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
{
"id": "zookeeper",
"kind": "Service",
"apiVersion": "v1beta1",
"port": 2181,
"containerPort": 2181,
"selector": { "name": "zookeeper" },
"labels": { "name": "zookeeper" }
}
"apiVersion": "v1beta3",
"metadata": {
"name": "zookeeper",
"labels": {
"name": "zookeeper"
}
},
"spec": {
"ports": [
{
"port": 2181,
"targetPort": 2181
}
],
"selector": {
"name": "zookeeper"
}
}
}
38 changes: 23 additions & 15 deletions examples/storm/zookeeper.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
{
"id": "zookeeper",
"kind": "Pod",
"apiVersion": "v1beta1",
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "zookeeper",
"containers": [{
"name": "zookeeper",
"image": "mattf/zookeeper",
"cpu": 100,
"ports": [{ "containerPort": 2181 }]
}]
"apiVersion": "v1beta3",
"metadata": {
"name": "zookeeper",
"labels": {
"name": "zookeeper"
}
},
"labels": {
"name": "zookeeper"
"spec": {
"containers": [
{
"name": "zookeeper",
"image": "mattf/zookeeper",
"ports": [
{
"containerPort": 2181
}
],
"resources": {
"limits": {
"cpu": "100m"
}
}
}
]
}
}
}

0 comments on commit 6b27aa2

Please sign in to comment.