Skip to content

RunnerDeployment creates an uncontrolled number of Runners #875

Open
@pavelsmolensky

Description

@pavelsmolensky

Describe the bug
RunnerDeployment creates an uncontrolled number of Runners. Starting from helm chart version 0.13.0

Checks

  • [*] My actions-runner-controller version (v0.x.y) does support the feature

To Reproduce
Steps to reproduce the behavior:

  1. Install actions-runner-controller via helm chart (0.13.0, 0.13.1, 0.13.2 versions have this issue, 0.12.8 and below - don't)
    helm upgrade --install -n gh-actions actions-runner-controller actions-runner-controller/actions-runner-controller --set authSecret.create=true --set scope.watchNamespace=gh-actions --set scope.singleNamespace=true --set securityContext.runAsUser=999 --set authSecret.github_token=*** --version "0.13.1"
  2. Install RunnerDeployment kubectl -n gh-actions apply -f org-runner-deployment.yaml
apiVersion: actions.summerwind.dev/v1alpha1
kind: RunnerDeployment
metadata:
  name: runner-deployment-1
spec:
  replicas: 1
  template:
    spec:
      repository: existing-repo-name/existing-project-name
  1. Observe RunnerReplicaSet, Runner and Pod resources => Their amount grows without a stop. In my case I got about 25000 runners before I realized what's happening. Pods eventually cannot start by hitting request limits. There are so many github API requests happens that quota is reached and it becomes very difficult to cleanup all the created resources (because of the Runner finalizers)

Expected behavior
1 RunnerReplicaSet, 1 Runner and one Pod should be created

Environment (please complete the following information):

  • Controller Version 0.20.1
  • Deployment Method: Helm
  • Helm Chart Version: 0.13.1 (or 0.13.0, or 0.13.2)

Additional context
Controller logs:
gh-actions-actions-runner-controller-86c4cdfccc-tzxb5-1633593533072392200.log
List of runners after a couple of seconds (exported from k9s):
runners-gh-actions-1633593544480491500.csv

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions