helm repo add gitlab https://charts.gitlab.io
helm repo update
helm fetch gitlab/gitlab-runner
tar xf gitlab-runner-0.11.0.tgz
# gitlab 地址
gitlabUrl: https://git.xxx.com/
# gitlab runner token. 在admin--runners里查看
runnerRegistrationToken: "Qxr8WHByt4Q6ekknP_tL"
# 访问s3 的secret,做cache时使用
certsSecretName: s3access
rbac:
# 开启rbac权限
create: true
# 在容器中使用docker,需要开启特权模式
privileged: true
# cache相关配置
cache:
# cache类型
cacheType: s3
cachePath: "export"
cacheShared: true
## S3 settings
# s3存储的地址
s3ServerAddress: minio.minio:9000
# 缓存到的目录,在minio根目录创建
s3BucketName: runner
s3BucketLocation:
s3CacheInsecure: true
secretName: s3access
kubectl create namespace runner
kubectl create secret generic s3access --from-literal=accesskey="minio" --from-literal=secretkey="minio123" -n runner
helm -n runner install runner ./gitlab-runner(helm chart的实际路径)
https://docs.gitlab.com/runner/install/kubernetes.html
https://www.cnblogs.com/heweiblog/p/11792839.html
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。