debian-mirror-gitlab/doc/install/kubernetes/index.md

63 lines
5 KiB
Markdown
Raw Normal View History

2017-09-10 17:25:29 +05:30
# Installing GitLab on Kubernetes
2018-03-17 18:26:18 +05:30
> **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](https://gitlab.com/charts/charts.gitlab.io/issues).
2017-09-10 17:25:29 +05:30
2018-03-17 18:26:18 +05:30
The easiest method to deploy GitLab on [Kubernetes](https://kubernetes.io/) is
to take advantage of GitLab's Helm charts. [Helm] is a package
2017-08-17 22:00:37 +05:30
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.
2018-03-17 18:26:18 +05:30
## Chart Overview
* **[GitLab-Omnibus](gitlab_omnibus.md)**: The best way to run GitLab on Kubernetes today, suited for small deployments. The chart is in beta and will be deprecated by the [cloud native GitLab chart](#cloud-native-gitlab-chart).
2018-10-15 14:42:47 +05:30
* **[Cloud Native GitLab Chart](https://gitlab.com/charts/gitlab/blob/master/README.md)**: The next generation GitLab chart, currently in alpha. Will support large deployments with horizontal scaling of individual GitLab components.
2018-03-17 18:26:18 +05:30
* Other Charts
* [GitLab Runner Chart](gitlab_runner_chart.md): For deploying just the GitLab Runner.
* [Community Contributed Charts](#community-contributed-charts): Community contributed charts, deprecated by the official GitLab chart.
## 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.
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).
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.
Learn more about the [gitlab-omnibus chart](gitlab_omnibus.md).
## Cloud Native GitLab Chart
2018-10-15 14:42:47 +05:30
GitLab is working towards building a [cloud native GitLab chart](https://gitlab.com/charts/gitlab/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).
2018-03-17 18:26:18 +05:30
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.
2018-04-04 21:44:52 +05:30
Presently this chart is available in alpha for testing, and not recommended for production use.
2018-03-17 18:26:18 +05:30
2018-10-15 14:42:47 +05:30
Learn more about the [cloud native GitLab chart here ](https://gitlab.com/charts/gitlab/blob/master/README.md) and [here [Video]](https://youtu.be/Z6jWR8Z8dv8).
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
## Other Charts
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
### GitLab Runner Chart
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
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-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
Learn more about [gitlab-runner chart.](gitlab_runner_chart.md)
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
### Advanced GitLab Installation
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
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.
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
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-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
Learn more about the [gitlab chart.](gitlab_chart.md)
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
### Community Contributed Charts
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
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-17 22:00:37 +05:30
[chart]: https://github.com/kubernetes/charts
[helm]: https://github.com/kubernetes/helm/blob/master/README.md