mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-18 16:01:53 +00:00
Adds an example of using Kubernetes to build a distributed task queue using Celery along with a RabbitMQ broker and Flower frontend. Resolves: #1788
32 lines
650 B
JSON
32 lines
650 B
JSON
{
|
|
"id": "flower-controller",
|
|
"kind": "ReplicationController",
|
|
"apiVersion": "v1beta1",
|
|
"desiredState": {
|
|
"replicas": 1,
|
|
"replicaSelector": {"name": "flower"},
|
|
"podTemplate": {
|
|
"desiredState": {
|
|
"manifest": {
|
|
"version": "v1beta1",
|
|
"id": "flower",
|
|
"containers": [{
|
|
"name": "flower",
|
|
"image": "endocode/flower",
|
|
"cpu": 100,
|
|
"ports": [{"containerPort": 5555, "hostPort": 5555}]
|
|
}]
|
|
}
|
|
},
|
|
"labels": {
|
|
"name": "flower",
|
|
"app": "taskQueue"
|
|
}
|
|
}
|
|
},
|
|
"labels": {
|
|
"name": "flower"
|
|
}
|
|
}
|
|
|