kubernetes/examples/celery-rabbitmq/celery-controller.json
Karl Beecher 43ab8188c8 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
2015-03-06 09:15:14 +01:00

32 lines
658 B
JSON

{
"id": "celery-controller",
"kind": "ReplicationController",
"apiVersion": "v1beta1",
"desiredState": {
"replicas": 1,
"replicaSelector": {"name": "celery"},
"podTemplate": {
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "celery",
"containers": [{
"name": "celery",
"image": "endocode/celery-app-add",
"cpu": 100,
"ports": [{"containerPort": 5672, "hostPort": 5672}]
}]
}
},
"labels": {
"name": "celery",
"app": "taskQueue"
}
}
},
"labels": {
"name": "celery"
}
}