1. 基于kubernetes部署runner
安装helm3
https://github.com/helm/helm/releases
tar -zxvf helm-v3.0.0-linux-amd64.tar.gz
mv linux-amd64/helm /usr/local/bin/helm
配置chart 存储库
## 添加chart存储库
helm repo add gitlab https://charts.gitlab.io
## 验证源
helm repo list
##查询可以安装的gitlab-runner chart
helm search repo -l gitlab/gitlab-runner
更新配置信息
## 获取相关版本的chart包
helm fetch gitlab/gitlab-runner --version=0.15.0
[root@zeyang-nuc-service ~]# ls
Desktop es
Documents gitlab-runner-0.15.0.tgz
values.yml
## GitLab Runner Image
##
## By default it's using gitlab/gitlab-runner:alpine-v{VERSION}
## where {VERSION} is taken
本文介绍了如何基于Kubernetes部署GitLab runner,详细步骤包括安装Helm3、配置chart存储库、更新配置并部署chart。同时,讲解了应用发布集成的过程,如创建名称空间、准备镜像凭据、配置模板及设置gitlab-ci.yml文件,实现持续集成和应用部署的效果。
订阅专栏 解锁全文
753

被折叠的 条评论
为什么被折叠?



