gitlab-runner on kubernetes on raspberry pi - container "helper" not found

4/17/2018

I'm trying to run gitlab-runner on my kubernetes cluster on raspberry pi.

The gitlab pipeline generates the following output:

Running with gitlab-runner 10.4.0 (857480b6) on hello-world-gitlab-runner-6548-tq4mr (123)
Using Kubernetes namespace: gitlab
Using Kubernetes executor with image arm32v7/node ...
Waiting for pod gitlab/runner-123-project-456-concurrent-789 to be running, status is Pending
Waiting for pod gitlab/runner-123-project-456-concurrent-789 to be running, status is Pending
Waiting for pod gitlab/runner-123-project-456-concurrent-789 to be running, status is Pending
ERROR: Job failed (system failure): unable to upgrade connection: container not found ("helper")

The gitlab-runner pod logs the following output:

+ cp /scripts/config.toml /etc/gitlab-runner/
+ /entrypoint register --non-interactive --executor kubernetes
Running in system-mode.                            

Registering runner... succeeded                     runner=xyz
Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded! 
+ /entrypoint run --user=gitlab-runner --working-directory=/home/gitlab-runner
Starting multi-runner from /etc/gitlab-runner/config.toml ...  builds=0
Running in system-mode.                            

Configuration loaded                                builds=0
Metrics server disabled                            
Checking for jobs... received                       job=63348569 repo_url=https://gitlab.com/mypublicaccount/helloworld-docker.git runner=123
ERROR: Job failed (system failure): unable to upgrade connection: container not found ("helper")  job=456 project=789 runner=123
Checking for jobs... received                       job=456 repo_url=https://gitlab.com/mypublicaccount/helloworld-docker.git runner=789
ERROR: Job failed (system failure): unable to upgrade connection: container not found ("helper")  job=123 project=456 runner=789

Any idea to fix this?

-- bbholzbb
arm
gitlab
gitlab-ci-runner
kubernetes
raspberry-pi

2 Answers

5/4/2018

I probably just had a similar problem, so far no solution, but it seems the gitlab-runner is trying to pull and run the wrong gitlab-runner-helper. this is another docker image pulled and in my case it got pulled in x86 flavor. It cannot run on RPI, which is arm. This might help a bit...

-- Sven Haiges
Source: StackOverflow

7/16/2019

I managed to specify helper container version (my runner was configured with helm chart and values.yaml) - official image supports ARM

runners:
  helpers:
    image: gitlab/gitlab-runner-helper:arm-latest
-- Cybran
Source: StackOverflow