您好,登錄后才能下訂單哦!
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權(quán)限
create: true
# 在容器中使用docker,需要開啟特權(quán)模式
privileged: true
# cache相關(guān)配置
cache:
# cache類型
cacheType: s3
cachePath: "export"
cacheShared: true
## S3 settings
# s3存儲的地址
s3ServerAddress: minio.minio:9000
# 緩存到的目錄,在minio根目錄創(chuàng)建
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
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。