How to configure GCS cache with Gitlab managed Kubernetes?
I don't know if this is the right place. Please point me in the right direction otherwise.
With the recent release of Gitlab runner that supports GCS cache, I destroyed out CI, and rebuilt using Gitlab K8s runner support. But the cache still wasn't enabled by default. Can this be enabled, so that when creating a runner deployment on k8s, it provisions a bucket as well?
So I dug into the runner-gitlab-runner config map, edited it and added set the config.toml like so:
concurrent = 10
check_interval = 3
log_level = "info"
metrics_server = '[::]:9252
[[runners]]
[runners.cache]
Type = "gcs"
Path = "cache"
Shared = false
[runners.cache.gcs]
AccessID = "[redacted]"
PrivateKey = "[redacted]"
BucketName = "[redacted]"
However, when I kick off new builds, they don't appear to be using these settings...
Until the k8s builder in gitlab creates and configures the bucket for us, can someone please point me in the right direction on how to properly configure GCS cache under the gitlab created/managed k8s.
Thank you in advance.