mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-31 13:50:01 +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
		
	
	
		
			658 B
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			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"
 | |
|   }
 | |
| }
 | |
| 
 |