I have a Gitlab Runner running on Kubernetes. I see there are options to limit concurrent jobs from the runner level, but it would be preferable if we could do this in .gitlab-ci.yml level or from project level, but we can't we find the settings for it.
I saw this Disallow CI pipelines of one GitLab project to run concurrently? but I am also not sure how to do this on runner deployed on Kubernetes.
If I do this, it won't stop the runner from creating pods still which defeats the purpose of limiting concurrent jobs and control how much resources to be allocated.
I've also looked up resource_group but it limits the jobs to 1, but we want to limit the jobs to 2 or 3 to run concurrently.