如何增加 gke kubernetes runner 上的 gitlab 作业并发性?

How to increase gitlab job concurrency on gke kubernetes runner?

我通过the standard default runner creation UI in gitlab (3 node n1-standard-4 gke cluster). I've been trying to increase my gitlab runner to handle more than the default 4 concurrent jobs, but for some reason the limit is still capped at running only 4 jobs at once.

创建了两个gitlab 运行ners

在 GCP 中,我在配置映射 runner-gitlab-runnervalues-content-configuration-runner 下将 config.toml 中的 concurrent 值从 4 更改为 20,这些映射是在我的集群中生成的https://console.cloud.google.com/kubernetes/config 菜单。

我还需要更改什么才能让我的 gitlab 运行ners 一次 运行 超过 4 个工作?

Do I need to change the limit in the runner options? 如果是这样,我在 GCP 中的哪里可以找到该配置?

更改 GCP 中的配置映射不会立即更新集群。您需要手动重新加载部署:

kubectl rollout restart deployment/runner-gitlab-runner -n gitlab-managed-apps

GCP 集群菜单中还有一个按钮,可以在浏览器中使用集群的 kubeconfig 打开一个终端 window。