Fabian83
Fabian83

Reputation: 61

Kubernetes number of Pods according to tasks

I have a certain processing task that I want to solve with kubernetes. The basic concept is that there is a certain number of items in a work queue that I want to process. Items can be added to the queue and are deleted as soon as a pod finished processing one. The preferred work flow would be:

Is there any build in solution using kubectl? Using the job pattern I can define the number of parallel Pods but those are running all the time until success and not scaled up upon other criteria.

Thanks for your help!

Upvotes: 0

Views: 503

Answers (1)

Praveen Sripati
Praveen Sripati

Reputation: 33543

Use a Horizontal Pod Autoscaler. You may have to define Custom Metrics for getting the number of items in the Queue and use it in HPA.

Upvotes: 2

Related Questions