GitLab can be installed in most GNU/Linux distributions, and with several cloud providers. To get the best experience from GitLab, you must balance performance, reliability, ease of administration (backups, upgrades, and troubleshooting), and the cost of hosting.
Before you install GitLab, be sure to review the system requirements. The system requirements include details about the minimum hardware, software, database, and additional requirements to support GitLab.
Depending on your platform, select from the following available methods to install GitLab:
|Installation method||Description||When to choose|
|Linux package||The official deb/rpm packages (also known as Omnibus GitLab) that contains a bundle of GitLab and the components it depends on, including PostgreSQL, Redis, and Sidekiq.||This method is recommended for getting started. The Linux packages are mature, scalable, and are used today on GitLab.com. If you need additional flexibility and resilience, we recommend deploying GitLab as described in the reference architecture documentation.|
|Helm charts||The cloud native Helm chart for installing GitLab and all of its components on Kubernetes.||When installing GitLab on Kubernetes, it has some trade-offs that you must be aware of: |
- Administration and troubleshooting requires Kubernetes knowledge.
- It can be more expensive for smaller installations. The default installation requires more resources than a single node Linux package deployment, as most services are deployed in a redundant fashion.
Use this method if your infrastructure is built on Kubernetes and you’re familiar with how it works. The methods for management, observability, and some concepts are different than traditional deployments.
|Docker||The GitLab packages, Dockerized.||Use this method if you’re familiar with Docker.|
|Source||Install GitLab and all of its components from scratch.||Use this method if none of the previous methods are available for your platform. Can be used for unsupported systems like *BSD.|
|GitLab Environment Toolkit (GET)||The GitLab Environment toolkit provides a set of automation tools to deploy a reference architecture on most major cloud providers.||Customers are very welcome to trial and evaluate GET today, however be aware of key limitations of the current iteration. For production environments further manual setup is required based on your specific requirements.|
|GitLab Operator||The GitLab Operator provides an installation and management method for GitLab following the Kubernetes Operator pattern.||Use the GitLab Operator to run GitLab in an OpenShift environment.|
Regardless of the installation method, you can install GitLab on several cloud providers, assuming the cloud provider supports it. Here are several possible installation methods, the majority which use the Linux packages:
|AWS (HA)||Install GitLab on AWS using the community AMIs provided by GitLab.|
|Google Cloud Platform (GCP)||Install GitLab on a VM in GCP.|
|Azure||Install GitLab from Azure Marketplace.|
After you complete the steps for installing GitLab, you can configure your instance.