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!
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.