Contents

使用Helm安装Gitlab

Contents

使用Helm安装Gitlab

需要先配置helm 后再进行此配置安装

使用 以下命令检测helm版本信息

helm version

对helm增加Gitlab的安装库

1
2
helm repo add gitlab https://charts.gitlab.io/
helm repo update

使用以下命令进行安装

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
helm install gitlab gitlab/gitlab \
  --namespace gitlab --timeout 600s \
  --set certmanager-issuer.email=your.email@example.com \
  --set global.ingress.configureCertmanager=true \
  --set global.ingress.class=nginx \
  --set global.hosts.domain=gitlab.example.com \
  --set gitlab.unicorn.workhorse.timeout=3600 \
  --set gitlab.unicorn.workhorse.max-concurrency=3000 \
  --set gitlab.username=admin \
  --set gitlab.password=password \
  --set gitlab.pages.http=true \
  --set gitlab.pages.https=true

注意: 其中global.hosts.domain为访问gitlab时使用的域名;gitlab.username为访问gitlab的用户名; gitlab.password为访问时使用的密码