gitlab-ha
by Helm
Helm chartv0.7.3App v17.11.6
GitLab CE is set up in the Docker image using the install from source method as documented in the the official GitLab documentation.
About this chart
gitlab-ha
GitLab CE is set up in the Docker image using the install from source method as documented in the the official GitLab documentation.
Installing the Chart
To install the chart with the release name gitlab-ha:
$ helm repo add c7n https://openchart.choerodon.com.cn/choerodon/c7n
$ helm repo update
$ helm install gitlab-ha c7n/gitlab-ha
Specify each parameter using the --set key=value[,key=value] argument to helm install.
Uninstalling the Chart
$ helm delete gitlab-ha
Requirements
| Repository | Name | Version |
|---|---|---|
| https://openchart.choerodon.com.cn/choerodon/c7n | common | 1.x.x |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| core.affinity | string | "soft" | |
| core.env.GITLAB_BACKUP_EXPIRY | int | 604800 | |
| core.env.GITLAB_BACKUP_SCHEDULE | string | "daily" | |
| core.env.GITLAB_BACKUP_TIME | string | "01:00" | |
| core.env.GITLAB_NOTIFY_ON_BROKEN_BUILDS | bool | true | |
| core.env.GITLAB_NOTIFY_PUSHER | bool | false | |
| core.env.GITLAB_SECRETS_DB_KEY_BASE | string | "bf2e47b68d6cafaef1d767e628b619365becf27571e10f196f98dc85e7771042b9203199d39aff91fcb6837c8ed83f2a912b278da50999bb11a2fbc0fba52964" | |
| core.env.GITLAB_SECRETS_OTP_KEY_BASE | string | "b719fe119132c7810908bba18315259ed12888d4f5ee5430c42a776d840a396799b0a5ef0a801348c8a357f07aa72bbd58e25a84b8f247a25c72f539c7a6c5fa" | |
| core.env.GITLAB_SECRETS_SECRET_KEY_BASE | string | "6e657410d57c71b4fc3ed0d694e7842b1895a8b401d812c17fe61caf95b48a6d703cb53c112bc01ebd197a85da81b18e29682040e99b4f26594772a4a2c98c6d" | |
| core.env.GITLAB_TIMEZONE | string | "Beijing" | |
| core.env.IMAP_ENABLED | bool | false | |
| core.env.OAUTH_ENABLED | bool | false | |
| core.env.SMTP_ENABLED | bool | false | |
| core.env.TZ | string | "Asia/Shanghai" | |
| core.image.repository | string | "registry.cn-shanghai.aliyuncs.com/c7n/docker-gitlab" | |
| core.image.tag | string | "v14.10.5" | |
| core.livenessProbe.enabled | bool | false | |
| core.nodeSelector | object | {} | |
| core.podAnnotations | object | {} | |
| core.replicas | int | 1 | |
| core.tolerations | list | [] | |
| database.external.databaseName | string | "gitlabhq_production" | |
| database.external.host | string | "192.168.0.1" | |
| database.external.password | string | "password" | |
| database.external.port | string | "5432" | |
| database.external.username | string | "user" | |
| database.internal.affinity | object | {} | |
| database.internal.image.repository | string | "registry.cn-shanghai.aliyuncs.com/c7n/postgresql" | |
| database.internal.image.tag | string | "12-20200524" | |
| database.internal.nodeSelector | object | {} | |
| database.internal.password | string | "changeit" | |
| database.internal.podAnnotations | object | {} | |
| database.internal.tolerations | list | [] | |
| database.type | string | "internal" | |
| expose.clusterIP.ports.http | int | 80 | |
| expose.clusterIP.ports.ssh | int | 22 | |
| expose.ingress.annotations."ingress.kubernetes.io/proxy-body-size" | string | "0" | |
| expose.ingress.annotations."nginx.ingress.kubernetes.io/proxy-body-size" | string | "0" | |
| expose.ingress.host | string | "gitlab.cluster.local" | |
| expose.ingress.sshPort | int | 30022 | |
| expose.loadBalancer.IP | string | "" | |
| expose.loadBalancer.ports.http | int | 80 | |
| expose.loadBalancer.ports.ssh | int | 22 | |
| expose.nodePort.ports.http.nodePort | int | 30007 | |
| expose.nodePort.ports.http.port | int | 80 | |
| expose.nodePort.ports.ssh.nodePort | int | 30022 | |
| expose.nodePort.ports.ssh.port | int | 22 | |
| expose.tls.certExpiry | int | 3560 | |
| expose.tls.enabled | bool | false | |
| expose.tls.secretName | string | "" | |
| expose.type | string | "ingress" | |
| imagePullPolicy | string | "IfNotPresent" | |
| persistence.enabled | bool | false | |
| persistence.persistentVolumeClaim.core.accessMode | string | "ReadWriteMany" | |
| persistence.persistentVolumeClaim.core.existingClaim | string | "" | |
| persistence.persistentVolumeClaim.core.size | string | "20Gi" | |
| persistence.persistentVolumeClaim.core.storageClass | string | "" | |
| persistence.persistentVolumeClaim.core.subPath | string | "" | |
| persistence.persistentVolumeClaim.database.accessMode | string | "ReadWriteOnce" | |
| persistence.persistentVolumeClaim.database.existingClaim | string | "" | |
| persistence.persistentVolumeClaim.database.size | string | "5Gi" | |
| persistence.persistentVolumeClaim.database.storageClass | string | "" | |
| persistence.persistentVolumeClaim.database.subPath | string | "" | |
| persistence.persistentVolumeClaim.redis.accessMode | string | "ReadWriteOnce" | |
| persistence.persistentVolumeClaim.redis.existingClaim | string | "" | |
| persistence.persistentVolumeClaim.redis.size | string | "1Gi" | |
| persistence.persistentVolumeClaim.redis.storageClass | string | "" | |
| persistence.persistentVolumeClaim.redis.subPath | string | "" | |
| persistence.resourcePolicy | string | "keep" | |
| redis.external.host | string | "192.168.0.2" | |
| redis.external.password | string | nil | |
| redis.external.port | string | "6379" | |
| redis.internal.affinity | object | {} | |
| redis.internal.image.repository | string | "registry.cn-shanghai.aliyuncs.com/c7n/redis" | |
| redis.internal.image.tag | float | 6.2 | |
| redis.internal.nodeSelector | object | {} | |
| redis.internal.password | string | nil | |
| redis.internal.podAnnotations | object | {} | |
| redis.internal.tolerations | list | [] | |
| redis.type | string | "internal" |
Maintainers
| Name | Url | |
|---|---|---|
| TimeBye | [email protected] |
Deploy gitlab-ha with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has gitlab-ha on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartgitlab-ha is pinned at v0.7.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply