Kubernetes quotas queue Kubernetes quotas queue kubernetes kubernetes

Kubernetes quotas queue


IMO, if k8s hasn't accepted the resource, how come it manage its lifecycle or execution order.

If I understood your question correctly, then its the same pod trying to be scheduled then, your job should be designed in such a way that order of job execution should not matter because there could be scenarios where one execution is not completed and next one comes up or previous one failed to due some error or dependent service being unavailable. So, the next execution should be able to start from where the last one left.

You can also look at the work queue pattern in case it suits your requirements as explained https://kubernetes.io/docs/tasks/job/fine-parallel-processing-work-queue/

In case you just want one job to be in execution at one time.


I think, running jobs in predefined order must be managed by external logic. We use Jenkins Pipeline for that.