GitLab-Runner 是配合 GitLab-CI 进行使用的,GitLab 里面每个工程都会定义一些该工程的持续集成脚本,该脚本可配置一个或多个 Stage 例如构建、编译、检测、测试、部署等等。当工程有代码更新时,GitLab 会自动触发 GitLab-CI,此时 CitLab-CI 会找到事先注册好的 GitLab-Runner 通知并触发该 Runner 来执行预先定...
[[runners]] name = "k8s-runner" token = "YOUR_REGISTRATION_TOKEN" executor = "kubernetes" [runners.kubernetes] namespace = "{{.Release.Namespace}}" cpu_limit = "2" cpu_request = "2" memory_limit = "4Gi" memory_request = "4Gi" pod_labels_overwrite_allowed = ".*" [runners.kuber...
而这就需要两个操作,一个是gitlab-runner register,用来将自己注册为一个新的runner,一个是gitlab-runner run,用来启动runner 而配置volume挂载的格式却是: concurrent = 4[[runners]]# usual configurationexecutor = "kubernetes"[runners.kubernetes][[runners.kubernetes.volumes.host_path]]name = "hostpath-2"...
REGISTER_NON_INTERACTIVE:"true"REGISTER_LOCKED:"false"METRICS_SERVER:"0.0.0.0:9100"CI_SERVER_URL:"http://11.413.196.1xx:32080/ci"RUNNER_REQUEST_CONCURRENCY:"4"RUNNER_EXECUTOR:"kubernetes"KUBERNETES_NAMESPACE:"kube-ops"KUBERNETES_PRIVILEGED:"true"KUBERNETES_CPU_LIMIT:"1"KUBERNETES_MEMORY_LIMIT:"1Gi...
向GitLab-CI注册一个Runner需要两样东西:GitLab-CI的url和注册token。 其中,token是为了确定你这个...
In GitLab Runner 17.9.0 and later, a Kubernetes informer tracks build pod changes. This helps the executor detect the changes more quickly. The informer requires list and watch permissions for pods. When the executor starts the build, it checks the Kubernetes API for the permissions. If all ...
进入容器以token 注册gitlab-runner --- root@gitlab-runner-java-0:/# gitlab-runner register -n \> --url https://[abc.gitlab.com] \ > --registration-token [your_project_token] \ > --tag-list java,prod,preview,test\ > --executor docker \ ...
apiVersion: v1 data: REGISTER_NON_INTERACTIVE: "true" REGISTER_LOCKED: "false" METRICS_SERVER: "0.0.0.0:9100" CI_SERVER_URL: "http://git.qikqiak.com/ci" RUNNER_REQUEST_CONCURRENCY: "4" RUNNER_EXECUTOR: "kubernetes" KUBERNETES_NAMESPACE: "kube-ops" KUBERNETES_PRIVILEGED: "true" KUBERNETES...
This has been fixed in the Docker executor viaFF_DISABLE_UMASK_FOR_DOCKER_EXECUTOR. The code inhttps://gitlab.com/gitlab-org/gitlab-runner/-/blob/511bf632bf402d92c9621625b2186cbc3b68752d/executors/docker/docker_command.go#L212-244essentially: ...
Kubernetes executor: allow specifying logs and scripts directory path in runner configuration Description I am working with custom runtimes in kubernetes and I want to support gitlab runner with them. Currently it works very well withFF_USE_LEGACY_KUBERNETES_EXECUTION_STRATEGY=true, because it only ...