Hey,
I run an full functional OpenShift/OKD Cluster, my main GitLab instance works very well. Now I wan’t to install the GitLab Runner Operator, everything works well, but when I setup a runner. the runner doesn’t come up. I use the following yaml Files to setup an an Runner instance.
ERROR: Job failed (system failure): prepare environment: setting up credentials: secrets is forbidden: User "system:serviceaccount:gitlab-runners:gitlab-runner-sa" cannot create resource "secrets" in API group "" in the namespace "gitlab-runners". Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading for more information duration_s=0.1053084 job=22 project=3 runner=EZZwtQiP
27
WARNING: Failed to process runner builds=0 error=prepare environment: setting up credentials: secrets is forbidden: User "system:serviceaccount:gitlab-runners:gitlab-runner-sa" cannot create resource "secrets" in API group "" in the namespace "gitlab-runners". Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading for more information executor=kubernetes runner=EZZwtQiP
28
WARNING: Checking for jobs... failed runner=EZZwtQiP status=couldn't execute POST against https://gitlab.contentways.eu/api/v4/jobs/request: Post "https://gitlab.contentways.eu/api/v4/jobs/request": EOF
29
WARNING: Checking for jobs... failed runner=EZZwtQiP status=couldn't execute POST against https://gitlab.contentways.eu/api/v4/jobs/request: Post "https://gitlab.contentways.eu/api/v4/jobs/request": EOF
30
WARNING: Checking for jobs... failed runner=EZZwtQiP status=couldn't execute POST against https://gitlab.contentways.eu/api/v4/jobs/request: Post "https://gitlab.contentways.eu/api/v4/jobs/request": EOF
31
WARNING: Checking for jobs... failed runner=EZZwtQiP status=couldn't execute POST against https://gitlab.contentways.eu/api/v4/jobs/request: Post "https://gitlab.contentways.eu/api/v4/jobs/request": EOF
32
WARNING: Checking for jobs... failed runner=EZZwtQiP status=couldn't execute POST against https://gitlab.contentways.eu/api/v4/jobs/request: Post "https://gitlab.contentways.eu/api/v4/jobs/request": EO
This is the log from the Gitlab Runner, who was created during CI/CD, hope anyone can help me please.
ERROR: Job failed (system failure): prepare environment: setting up credentials: secrets is forbidden: User "system:serviceaccount:gitlab-runner:gitlab-runner-sa" cannot create resource "secrets" in API group "" in the namespace "gitlab-runner". Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading for more information
This is the error I get, when I run CI/CD Pipelines
Maybe try following the docs? Also, as you probably see, not many people use OpenShift so that also reduces the amount of help you can get. I use Gitlab on a normal VM, and my runner also runs on a standard VM and there seems to be more people who run that way. Maybe in the future it will change and more people who use Gitlab on OpenShift will post and help out here.