Dynamically creating pods with kubernetes by a queue

3/20/2020

I have a service and it can process only one request at a time. I deployed service with kubernetes.

I want this: Every request will be put in a RabbitMQ queue. When the top request in the queue is sent, a new pod will create. The pod will be destroyed after the service at docker container ends. A new pod will open for the new request. Also, there will be a limit for pod count. New request in queue will be held when the limit is reached.

Can you guide me for this use case???

-- cobch
kubernetes
rabbitmq

1 Answer

3/20/2020

You can use knative. Knative is a Serverless framework which automatically create pod when there is an event. Rabbitmq as an event source is in progress.

-- Arghya Sadhu
Source: StackOverflow