K8s executor says unauthorized
I installed the Helm chart in EKS with the k8s executor but I always get the following error:
ERROR: Job failed (system failure): prepare environment: setting up credentials: Unauthorized. Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading for more information
I found a bunch of similar issues with the same error but none of them are using the helm chart with kubernetes. I don't even know what that link is asking me to do with the shell profile loading? I even checked inside the running pod and there is no .bash_logout
???
Here are the values I used for the chart:
gitlabUrl: https://gitlab.com/
runnerRegistrationToken: 1234567890
rbac:
create: true
clusterWideAccess: true
runners:
name: my-runner
executor: kubernetes
tags: eks,custom
config: |
[[runners]]
[runners.kubernetes]
namespace = "{{.Release.Namespace}}"
image = "python:latest"
[runners.cache]
Type = "s3"
Path = "runner"
Shared = true
[runners.cache.s3]
ServerAddress = "s3.amazonaws.com"
BucketName = "some-bucket"
BucketLocation = "us-east-1"
Insecure = false
AuthenticationType = "iam"
EKS: 1.21 Runner Chart: 0.48.0