Optionally configure RBAC for GitLab Runner
Disclaimer: I'm a complete newbie in k8s & helm charts, so what I've written may be meaningless!
Hi guys,
I created a test k8s cluster on a small KVM but stumbled across an error, which said that my jobs could not start:
ERROR: Job failed (system failure): the server does not allow access to the requested resource (post secrets)
The reason was in something called RBAC rules, which must be configured for kubernetes 1.6+ by default. A solution mentioned in this issue finally helped me: https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/issues/2130 (I just needed to replace namespace: gitlab
with namespace: default
before running kubectl apply -f ~/Desktop/gitlab-ci-runner.yaml --namespace=default
I'm curious if the yaml I've applied can be added to the runner's chart. Would that be a right thing to do given that k8s community plans to have RBAC enabled in all new clusters by default?