gitlab-org--gitlab-foss/doc/install/kubernetes/index.md

64 lines
5.4 KiB
Markdown
Raw Normal View History

# Installing GitLab on Kubernetes
2017-09-08 00:50:30 -04:00
> **Note**: These charts have been tested on Google Container Engine and Azure Container Service. Other Kubernetes installations may work as well, if not please [open an issue](https://gitlab.com/charts/charts.gitlab.io/issues).
2017-05-09 13:33:09 -04:00
2017-09-08 00:50:30 -04:00
The easiest method to deploy GitLab on [Kubernetes](https://kubernetes.io/) is
2017-08-28 14:18:25 -04:00
to take advantage of GitLab's Helm charts. [Helm] is a package
2017-05-09 13:33:09 -04:00
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.
2017-09-08 00:50:30 -04:00
## Chart Overview
2017-08-28 14:18:25 -04:00
2017-10-11 01:55:58 -04:00
* **[GitLab-Omnibus](gitlab_omnibus.md)**: The best way to run GitLab on Kubernetes today, suited for small to medium deployments. The chart is in beta and will be deprecated by the [cloud native GitLab chart](#cloud-native-gitlab-chart).
2017-10-01 22:04:18 -04:00
* **[Cloud Native GitLab Chart](https://gitlab.com/charts/helm.gitlab.io/blob/master/README.md)**: The next generation GitLab chart, currently in development. Will support large deployments with horizontal scaling of individual GitLab components.
2017-09-08 00:50:30 -04:00
* Other Charts
2017-09-30 13:35:13 -04:00
* [GitLab Runner Chart](gitlab_runner_chart.md): For deploying just the GitLab Runner.
2017-10-11 01:55:58 -04:00
* [Advanced GitLab Installation](gitlab_chart.md): Deprecated, being replaced by the [cloud native GitLab chart](#cloud-native-gitlab-chart). Provides additional deployment options, but provides less functionality out-of-the-box.
2017-10-01 22:04:18 -04:00
* [Community Contributed Charts](#community-contributed-charts): Community contributed charts, deprecated by the official GitLab chart.
2017-08-28 14:18:25 -04:00
2017-09-08 00:50:30 -04:00
## GitLab-Omnibus Chart (Recommended)
> **Note**: This chart is in beta while [additional features](https://gitlab.com/charts/charts.gitlab.io/issues/68) are being added.
2017-08-29 14:39:06 -04:00
2017-09-08 17:10:53 -04:00
This chart is the best available way to operate GitLab on Kubernetes. It deploys and configures nearly all features of GitLab, including: a [Runner](https://docs.gitlab.com/runner/), [Container Registry](../../user/project/container_registry.html#gitlab-container-registry), [Mattermost](https://docs.gitlab.com/omnibus/gitlab-mattermost/), [automatic SSL](https://github.com/kubernetes/charts/tree/master/stable/kube-lego), and a [load balancer](https://github.com/kubernetes/ingress/tree/master/controllers/nginx). It is based on our [GitLab Omnibus Docker Images](https://docs.gitlab.com/omnibus/docker/README.html).
2017-08-29 14:39:06 -04:00
2017-10-11 01:55:58 -04:00
Once the [cloud native GitLab chart](#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.
2017-05-09 13:33:09 -04:00
2017-10-11 01:55:58 -04:00
Learn more about the [gitlab-omnibus chart](gitlab_omnibus.md).
2017-09-01 00:29:53 -04:00
2017-09-30 13:35:13 -04:00
## Cloud Native GitLab Chart
2017-08-28 14:18:25 -04:00
2017-10-11 01:55:58 -04:00
GitLab is working towards building a [cloud native GitLab chart](https://gitlab.com/charts/helm.gitlab.io/blob/master/README.md). A key part of this effort is to isolate each service into its [own Docker container and Helm chart](https://gitlab.com/gitlab-org/omnibus-gitlab/issues/2420), rather than utilizing the all-in-one container image of the [current chart](#gitlab-omnibus-chart-recommended).
2017-08-29 14:39:06 -04:00
2017-09-08 00:50:30 -04:00
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.
2017-08-28 14:18:25 -04:00
2017-10-11 01:55:58 -04:00
This is a large project and will be worked on over the span of multiple releases. For the most up-to-date status and release information, please see our [tracking issue](https://gitlab.com/gitlab-org/omnibus-gitlab/issues/2420). We are planning to launch this chart in beta by the end of 2017.
2017-09-01 00:29:53 -04:00
2017-10-11 01:55:58 -04:00
Learn more about the [cloud native GitLab chart](https://gitlab.com/charts/helm.gitlab.io/blob/master/README.md).
2017-09-30 02:28:47 -04:00
2017-09-08 00:50:30 -04:00
## Other Charts
2017-08-28 14:18:25 -04:00
2017-09-08 00:50:30 -04:00
### GitLab Runner Chart
2017-05-09 13:33:09 -04:00
2017-09-08 17:10:53 -04:00
If you already have a GitLab instance running, inside or outside of Kubernetes, and you'd like to leverage the Runner's [Kubernetes capabilities](https://docs.gitlab.com/runner/executors/kubernetes.html), it can be deployed with the GitLab Runner chart.
2017-09-01 00:29:53 -04:00
2017-09-08 00:50:30 -04:00
Learn more about [gitlab-runner chart.](gitlab_runner_chart.md)
2017-05-09 13:33:09 -04:00
2017-09-08 00:50:30 -04:00
### Advanced GitLab Installation
2017-08-28 16:03:42 -04:00
2017-09-08 00:50:30 -04:00
If advanced configuration of GitLab is required, the beta [gitlab](gitlab_chart.md) 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](gitlab_omnibus.md) chart, once it supports [additional configuration options](https://gitlab.com/charts/charts.gitlab.io/issues/68). It's beta quality, and since it is not actively under development, it will never be GA.
2017-08-28 16:03:42 -04:00
2017-09-08 00:50:30 -04:00
Learn more about the [gitlab chart.](gitlab_chart.md)
2017-05-09 13:33:09 -04:00
2017-09-08 00:50:30 -04:00
### Community Contributed Charts
2017-09-30 13:32:39 -04:00
The community has also contributed GitLab [CE](https://github.com/kubernetes/charts/tree/master/stable/gitlab-ce) and [EE](https://github.com/kubernetes/charts/tree/master/stable/gitlab-ee) charts to the [Helm Stable Repository](https://github.com/kubernetes/charts#repository-structure). These charts should be considered [deprecated](https://github.com/kubernetes/charts/issues/1138) in favor of the [official Charts](gitlab_omnibus.md).
2017-08-28 16:03:42 -04:00
2017-05-09 13:33:09 -04:00
[chart]: https://github.com/kubernetes/charts
[helm]: https://github.com/kubernetes/helm/blob/master/README.md