gitlab-omnibus

by slamdev

Helm chartv0.1.6App 15.2.1-ee.0

Helm chart to deploy [Omnibus Gitlab](https://docs.gitlab.com/omnibus/).

About this chart

gitlab-omnibus

Helm chart to deploy Omnibus Gitlab.

Homepage: https://github.com/slamdev/helm-charts/tree/master/charts/gitlab-omnibus

Maintainers

NameEmailUrl
slamdev[email protected]

Values

KeyTypeDefaultDescription
additionalResourceslist[]list of additional resources to create (are processed via tpl function)
affinityobject{}affinity for scheduler pod assignment
backupCronJob.commandlist["gitlab-backup","create","SKIP=uploads,builds,artifacts,terraform_state,registry,pages,packages","GZIP_RSYNCABLE=yes","STRATEGY=copy"]command to execute in gitlab container
backupCronJob.enabledbooltrueenable scheduled backups
backupCronJob.imagestring"daedalusproject/base_kubectl"image
backupCronJob.podAnnotationsobject{}pod annotations
backupCronJob.resourcesobject{"requests":{"cpu":"10m","memory":"32Mi"}}custom resource configuration
backupCronJob.schedulestring"@daily"how often to run backaup job
containerPortslist[{"containerPort":8005,"name":"http"},{"containerPort":22,"name":"ssh"}]ports exposed by the container
disableProbesboolfalseflag to disable livenessProbe/readinessProbe/startupProbe probes; turn on before restoring from backup
envlist[]environment variables for the container
envFromlist[]environment variable sources for the container
fullnameOverridestring""full name of the chart.
gitlabConfstring"external_url 'https://gitlab.example.com'\ngitlab_rails['gitlab_repository_downloads_path'] = '/opt/tmp/repositories'\ngitlab_rails['object_store']['enabled'] = true\ngitlab_rails['object_store']['connection'] = {\n 'provider' => 'AWS',\n 'aws_access_key_id' => 'XXX',\n 'aws_secret_access_key' => 'XXX',\n}\ngitlab_rails['object_store']['objects']['artifacts']['bucket'] = 'gitlab/artifacts'\ngitlab_rails['object_store']['objects']['external_diffs']['bucket'] = 'gitlab/external_diffs'\ngitlab_rails['object_store']['objects']['lfs']['bucket'] = 'gitlab/lfs'\ngitlab_rails['object_store']['objects']['uploads']['bucket'] = 'gitlab/uploads'\ngitlab_rails['object_store']['objects']['packages']['bucket'] = 'gitlab/packages'\ngitlab_rails['object_store']['objects']['dependency_proxy']['bucket'] = 'gitlab/dependency_proxy'\ngitlab_rails['object_store']['objects']['terraform_state']['bucket'] = 'gitlab/terraform_state'\ngitlab_rails['object_store']['objects']['ci_secure_files']['bucket'] = 'gitlab/ci_secure_files'\ngitlab_rails['external_diffs_enabled'] = true\ngitlab_rails['external_diffs_when'] = 'outdated'\ngitlab_rails['shared_path'] = '/opt/tmp/shared'\ngitlab_rails['backup_path'] = \"/opt/tmp/backups\"\ngitlab_rails['backup_upload_connection'] = {\n 'provider' => 'AWS',\n 'aws_access_key_id' => 'XXX',\n 'aws_secret_access_key' => 'XXX',\n}\ngitlab_rails['backup_upload_remote_directory'] = 'gitlab/backups'\ngitlab_rails['uploads_directory'] = \"/opt/tmp/uploads\"\ngitlab_rails['initial_root_password'] = ENV['GITLAB_INITIAL_ROOT_PASSWORD']\ngitlab_rails['initial_shared_runners_registration_token'] = ENV['GITLAB_RUNNER_TOKEN']\ngitlab_rails['db_adapter'] = \"postgresql\"\ngitlab_rails['db_database'] = \"gitlab\"\ngitlab_rails['db_username'] = ENV['PG_USER']\ngitlab_rails['db_password'] = ENV['PG_PASSWORD']\ngitlab_rails['db_host'] = \"gitlab-postgres\"\ngitlab_rails['db_port'] = 5432\ngitlab_rails['redis_host'] = \"gitlab-redis-master\"\ngitlab_rails['redis_port'] = 6379\ngitlab_rails['registry_enabled'] = false\nregistry['enable'] = false\ngitlab_workhorse['listen_network'] = \"tcp\"\ngitlab_workhorse['listen_addr'] = \"0.0.0.0:8005\"\nsidekiq['metrics_enabled'] = false\nsidekiq['health_checks_enabled'] = false\npostgresql['enable'] = false\nredis['enable'] = false\nnginx['enable'] = false\npages_nginx['enable'] = false\ngitlab_ci['builds_directory'] = '/opt/tmp/ci-builds'\ngitlab_rails['gitlab_kas_enabled'] = false\ngitlab_kas['enable'] = false\nmonitoring_role['enable'] = false\nprometheus['enable'] = false\nprometheus_monitoring['enable'] = false\nalertmanager['enable'] = false\ngrafana['enable'] = false\ngitlab_exporter['enable'] = false\ngitlab_rails['packages_enabled'] = false\ngitlab_rails['dependency_proxy_enabled'] = false"config for gitlab.rb; default values: https://gitlab.com/gitlab-org/omnibus-gitlab/-/blob/15.2.1+ce.0/files/gitlab-config-template/gitlab.rb.template
healthCheckTokenstring"CHANGE_ME"predefined health check token for status probes; should be changed to a random value
image.pullPolicystring"IfNotPresent"image pull policy
image.repositorystring"gitlab/gitlab-ee"image repository
image.tagstring""image tag (chart's appVersion value will be used if not set)
imagePullSecretslist[]image pull secret for private images
nameOverridestring""override name of the chart
nodeSelectorobject{}node for scheduler pod assignment
podSecurityContextobject{}specifies security settings for a pod
postReconfigureCodestring""ruby code block for GITLAB_POST_RECONFIGURE_CODE
resourcesobject{}custom resource configuration
securityContextobject{}specifies security settings for a container
service.annotationsobject{}service annotations
service.loadBalancerIPstringnilload balancer IP
service.portslist[{"name":"http","port":80,"targetPort":"http"},{"name":"ssh","port":22,"targetPort":"ssh"}]service ports
service.typestring"ClusterIP"service type
serviceAccount.annotationsobject{}annotations to add to the service account
serviceAccount.createboolfalsespecifies whether a service account should be created
serviceAccount.namestringnilthe name of the service account to use; if not set and create is true, a name is generated using the fullname template
stsAnnotationsobject{}annotations to add to the statefulset
tolerationslist[]tolerations for scheduler pod assignment
volumeClaimTemplateslist[]volume claim templates
volumeMountslist[]additional volume mounts
volumeslist[]volumes

Deploy gitlab-omnibus with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has gitlab-omnibus 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartgitlab-omnibus is pinned at v0.1.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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