GitLab: Difference between revisions

 
(3 intermediate revisions by the same user not shown)
Line 6: Line 6:
===Setup===
===Setup===
To use your own PVs and PVCs,
To use your own PVs and PVCs,
* Create your own PVs and PVCs for gitaly, minio, postgres, and redis.
* Create your own PVs and PVCs for gitaly, postgres, and redis.
* Setup a PV for minio.
** Note that the gitaly PVC should be named <code>repo-data-gitlab-gitaly-0</code>
** Note that the gitaly PVC should be named <code>repo-data-gitlab-gitaly-0</code>
* Set the following values:
* Set the following values:
Line 13: Line 14:
   replicas: 2
   replicas: 2
   persistence:
   persistence:
     existingClaim: gitlab-minio
     volumeName: gitlab-minio
redis:
redis:
   persistence:
   persistence:
Line 24: Line 25:
===Migration from Omnibus Install===
===Migration from Omnibus Install===
See [https://docs.gitlab.com/charts/installation/migration/package_to_helm.html Migrate from the Linux package to the Helm chart]
See [https://docs.gitlab.com/charts/installation/migration/package_to_helm.html Migrate from the Linux package to the Helm chart]
===Docker-in-docker CI/CD===
The Gitlab CI/CD is useful for building docker images.<br>
You will need to deploy setup Gitlab runners.
Due to some issues with fastly [https://github.com/gliderlabs/docker-alpine/issues/307], you will want to set <code>command: ["--mtu=1300"]</code> on your <code>dind</code> service containers.


==Omnibus Administration==
==Omnibus Administration==
Here are notes on running your own gitlab instance.
Here are notes on running your own gitlab instance.<br>
'''Note: I've migrated from the Omnibus install to the helm charts.'''
===Terms===
===Terms===
* unicorn - this is the web server portion of gitlab
* unicorn - this is the web server portion of gitlab
Line 66: Line 75:
In <code>/etc/gitlab/gitlab.rb</code>, edit the following:
In <code>/etc/gitlab/gitlab.rb</code>, edit the following:
<pre>
<pre>
registry_external_url 'https://gitlab.davidl.me:5050'
registry_external_url 'https://registry.gitlab.davidl.me'


### Settings used by GitLab application
### Settings used by GitLab application
gitlab_rails['registry_enabled'] = true
gitlab_rails['registry_enabled'] = true
gitlab_rails['registry_host'] = "gitlab.davidl.me"
gitlab_rails['registry_host'] = "registry.gitlab.davidl.me"
gitlab_rails['registry_path'] = "/var/opt/gitlab/gitlab-rails/shared/registry"
gitlab_rails['registry_path'] = "/var/opt/gitlab/gitlab-rails/shared/registry"


registry_nginx['enable'] = false
registry_nginx['enable'] = false
</pre>
</pre>
Then have your reverse proxy terminate TLS and forward 5050 to 5000.
Then have your reverse proxy to 5000.