New example: Distributed task queue

Adds an example of using Kubernetes to build a distributed task queue
using Celery along with a RabbitMQ broker and Flower frontend.

Resolves: #1788
This commit is contained in:
Karl Beecher
2015-03-06 09:05:26 +01:00
parent 8b627f516f
commit 43ab8188c8
11 changed files with 441 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
{
"id": "rabbitmq-controller",
"kind": "ReplicationController",
"apiVersion": "v1beta1",
"desiredState": {
"replicas": 1,
"replicaSelector": {"name": "rabbitmq"},
"podTemplate": {
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "rabbitmq",
"containers": [{
"name": "rabbitmq",
"image": "dockerfile/rabbitmq",
"cpu": 100,
"ports": [{"containerPort": 5672, "hostPort": 5672}]
}]
}
},
"labels": {
"name": "rabbitmq",
"app": "taskQueue"
}
}
},
"labels": {
"name": "rabbitmq"
}
}