Feedback

Chat Icon

Cloud Native CI/CD with GitLab

From Commit to Production Ready

Cloud Native, Scalable and Observable GitLab Runner on Kubernetes
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/
runnerRegistrationToken: "$GITLAB_RUNNER_TOKEN"
rbac:  
  create: true  
serviceAccount:  
  create: true  
runners:
  config: |
    [[runners]]
      [runners.kubernetes]
        namespace = "{{.Release.Namespace}}"
        image = "python:3.12"
  privileged: true  
metrics:  
  enabled: true
  serviceMonitor:    
    namespace

Cloud Native CI/CD with GitLab

From Commit to Production Ready

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