Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
charts
templates
.helmignore
Chart.yaml
README.md
requirements.lock
requirements.yaml
values-custom.yaml
values.yaml

README.md

This chart is deprecated in favor of the official GitLab chart.

helm 部署

自建k8s平台部署 gitlab

github helm gitlab-ee chart:https://github.com/helm/charts/tree/master/stable/gitlab-ee

在此基础上将备份目录也(/var/opt/gitlab/backups)通过PVC持久化,方便数据的备份恢复: https://github.com/qhh0205/helm-charts

  1. 手动创建需要的 pv(基于 nfs) https://github.com/qhh0205/kubernetes-resources/tree/master/gitlab-pv
  2. 部署
git clone git@github.com:qhh0205/helm-charts.git
cd helm-charts/gitlab-ee
helm install --name gitlab --set externalUrl=http://domain/,gitlabRootPassword=xxxx -f values-custom.yaml ./ --namespace=gitlab

谷歌GKE平台部署

github helm gitlab-ee chart:https://github.com/helm/charts/tree/master/stable/gitlab-ee

在此基础上将备份目录也(/var/opt/gitlab/backups)通过PVC持久化,方便数据的备份恢复: https://github.com/qhh0205/helm-charts

git clone git@github.com:qhh0205/helm-charts.git
cd helm-charts/gitlab-ee
helm install --name gitlab --set externalUrl=http://domain/,gitlabRootPassword=xxxx -f values-custom.yaml ./ --namespace=gitlab

访问

  1. Kong Ingress 访问
  2. NodePort 访问
  3. LoadBalancer 访问(云提供商平台,比如 Google GKE)

GitLab Enterprise Edition

GitLab Enterprise Edition is an application to code, test, and deploy code together. It provides Git repository management with fine grained access controls, code reviews, issue tracking, activity feeds, wikis, and continuous integration.

Introduction

This chart stands up a GitLab Enterprise Edition install. This includes:

Prerequisites

  • At least 3 GB of RAM available on your cluster, in chunks of 1 GB
  • Kubernetes 1.4+ with Beta APIs enabled
  • PV provisioner support in the underlying infrastructure
  • The ability to point a DNS entry or URL at your GitLab install

Installing the Chart

To install the chart with the release name my-release run:

$ helm install --name my-release \
    --set externalUrl=http://your-domain.com/ stable/gitlab-ee

Note that you must pass in externalUrl, or you'll end up with a non-functioning release.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

Refer to values.yaml for the full run-down on defaults. These are a mixture of Kubernetes and GitLab-related directives.

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

$ helm install --name my-release \
    --set externalUrl=http://your-domain.com/,gitlabRootPassword=pass1234 \
    stable/gitlab-ee

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

$ helm install --name my-release -f values.yaml stable/gitlab-ee

Tip: You can use the default values.yaml

Persistence

By default, persistence of GitLab data and configuration happens using PVCs. If you know that you'll need a larger amount of space, make sure to look at the persistence section in values.yaml.

"If you disable persistence, the contents of your volume(s) will only last as long as the Pod does. Upgrading or changing certain settings may lead to data loss without persistence."