cobch
cobch

Reputation: 53

Dynamically creating pods with kubernetes by a queue

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???

Upvotes: 3

Views: 1103

Answers (1)

Arghya Sadhu
Arghya Sadhu

Reputation: 44657

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.

Upvotes: 2

Related Questions