Feedback

Chat Icon

Cloud Native CI/CD with GitLab

From Commit to Production Ready

Cloud Native GitLab Runners on Kubernetes: Autoscaling and Observability
91%

Manually Scaling GitLab Runners

If autoscaling is an overkill for your use case, you can use the kubectl scale command to manually scale the runner. For example, to scale it to 3 pods, you can run the following command:

kubectl scale deployment gitlab-runner --replicas=3

The recommended way is to update this value in the Helm values file:

cat < $HOME/todo/gitlab-runner/helm/values.yaml
# Config with a static number of replicas
gitlabUrl: https://gitlab.com/
runnerToken: "$GITLAB_RUNNER_TOKEN"
rbac:
  create: true
serviceAccount:
  create: true
runners:
  config: |
    [[runners]]
      [runners.kubernetes]
        namespace = "{{.Release.Namespace}}"
        image = "python:3.12"
  privileged

Cloud Native CI/CD with GitLab

From Commit to Production Ready

Enroll now to unlock all content and receive all future updates for free.