官方文档:Deploy the GitLab Helm chart | GitLab
官方文档(推荐,国内镜像):部署极狐GitLab Helm chart | 极狐GitLab
前提条件
cert-manager
nginx-ingress
添加代码仓库
1 | helm repo add gitlab http://charts.gitlab.io/ |
1 | helm pull gitlab/gitlab --untar |
修改values.yaml
1 | global: |
中文注释处修改。
安装
1 | cd gitlab/ |
获取密码
1 | kubectl get secret -n devops gitlab-gitlab-initial-root-password -ojsonpath='{.data.password}' | base64 --decode ; echo |
客户端导入自签证书
1 | git config --global http.sslCAInfo /path/to/ca.crt |