debian-mirror-gitlab/doc/install/kubernetes/index.md
2018-10-15 14:42:47 +05:30

5 KiB

Installing GitLab on Kubernetes

Note

: These charts have been tested on Google Kubernetes Engine and Azure Container Service. Other Kubernetes installations may work as well, if not please open an issue.

The easiest method to deploy GitLab on Kubernetes is to take advantage of GitLab's Helm charts. Helm is a package management tool for Kubernetes, allowing apps to be easily managed via their Charts. A Chart is a detailed description of the application including how it should be deployed, upgraded, and configured.

Chart Overview

Note

: This chart is in beta while additional features are being added.

This chart is the best available way to operate GitLab on Kubernetes. It deploys and configures nearly all features of GitLab, including: a Runner, Container Registry, Mattermost, automatic SSL, and a load balancer. It is based on our GitLab Omnibus Docker Images.

Once the cloud native GitLab chart is ready for production use, this chart will be deprecated. Due to the difficulty in supporting upgrades to the new architecture, migrating will require exporting data out of this instance and importing it into the new deployment.

Learn more about the gitlab-omnibus chart.

Cloud Native GitLab Chart

GitLab is working towards building a cloud native GitLab chart. A key part of this effort is to isolate each service into its own Docker container and Helm chart, rather than utilizing the all-in-one container image of the current chart.

By offering individual containers and charts, we will be able to provide a number of benefits:

  • Easier horizontal scaling of each service,
  • Smaller, more efficient images,
  • Potential for rolling updates and canaries within a service,
  • and plenty more.

Presently this chart is available in alpha for testing, and not recommended for production use.

Learn more about the cloud native GitLab chart here and here [Video].

Other Charts

GitLab Runner Chart

If you already have a GitLab instance running, inside or outside of Kubernetes, and you'd like to leverage the Runner's Kubernetes capabilities, it can be deployed with the GitLab Runner chart.

Learn more about gitlab-runner chart.

Advanced GitLab Installation

If advanced configuration of GitLab is required, the beta gitlab chart can be used which deploys the core GitLab service along with optional Postgres and Redis. It offers extensive configuration, but offers limited functionality out-of-the-box; it's lacking Pages support, the container registry, and Mattermost. It requires deep knowledge of Kubernetes and Helm to use.

This chart will be deprecated and replaced by the gitlab-omnibus chart, once it supports additional configuration options. It's beta quality, and since it is not actively under development, it will never be GA.

Learn more about the gitlab chart.

Community Contributed Charts

The community has also contributed GitLab CE and EE charts to the Helm Stable Repository. These charts should be considered deprecated in favor of the official Charts.