Runner on kubernetes returns forbidden, even though token is correct

Summary

I'm trying to create a gitlab runner using the following documents: https://docs.gitlab.com/runner/install/kubernetes.html

Having replaced the token and ran it in kubernetes using kubectl create -f scripts where scripts contains the both yml files.

It fails with the following errors

Starting multi-runner from /etc/gitlab-runner/config.toml ...  builds=0
Running in system-mode.

Configuration loaded                                builds=0
Metrics server disabled
ERROR: Checking for jobs... forbidden               runner=h181Sye7
ERROR: Checking for jobs... forbidden               runner=h181Sye7
ERROR: Checking for jobs... forbidden               runner=h181Sye7
ERROR: Runner https://gitlab.com/cih181Sye7fcs7V33t4ofs is not healthy and will be disabled!

i also tried specifying these other URLs to test but they result in the same error:

Steps to reproduce

Create a runner as described in the docs: https://docs.gitlab.com/runner/install/kubernetes.html

Actual behavior

Starting multi-runner from /etc/gitlab-runner/config.toml ...  builds=0
Running in system-mode.

Configuration loaded                                builds=0
Metrics server disabled
ERROR: Checking for jobs... forbidden               runner=h181Sye7
ERROR: Checking for jobs... forbidden               runner=h181Sye7
ERROR: Checking for jobs... forbidden               runner=h181Sye7
ERROR: Runner https://gitlab.com/cih181Sye7fcs7V33t4ofs is not healthy and will be disabled!

Expected behavior

Connecting and handling tasks

Environment description

Kubernetes on Azure

Used GitLab Runner version

Version: 9.5.0

Git revision: 413da38a

Git branch: 9-5-stable

GO version: go1.8.3

Built: Tue, 22 Aug 2017 13:35:13 +0000

OS/Arch: linux/amd64

Edited by Maxim Geerinck