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

171 lines
14 KiB
Markdown
Raw Normal View History

2019-09-04 21:01:54 +05:30
---
2022-07-23 23:45:48 +05:30
stage: Systems
2021-12-11 22:18:48 +05:30
group: Distribution
2022-11-25 23:54:43 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
2021-11-11 11:23:49 +05:30
comments: false
description: Read through the GitLab installation methods.
type: index
2019-09-04 21:01:54 +05:30
---
2021-11-11 11:23:49 +05:30
# AWS implementation patterns **(FREE SELF)**
2019-07-07 11:18:12 +05:30
2021-11-11 11:23:49 +05:30
GitLab [Reference Architectures](../../administration/reference_architectures/index.md) give qualified and tested guidance on the recommended ways GitLab can be configured to meet the performance requirements of various workloads. Reference Architectures are purpose-designed to be non-implementation specific so they can be extrapolated to as many environments as possible. This generally means they have a highly-granular "machine" to "server role" specification and focus on system elements that impact performance. This is what enables Reference Architectures to be adaptable to the broadest number of supported implementations.
2018-12-13 13:39:08 +05:30
2022-08-13 15:12:31 +05:30
Implementation patterns are built on the foundational information and testing done for Reference Architectures and allow architects and implementers at GitLab, GitLab Customers, and GitLab Partners to build out deployments with less experimentation and a higher degree of confidence that the results perform as expected. A more thorough discussion of implementation patterns is below in [Additional details on implementation patterns](#additional-details-on-implementation-patterns).
2018-12-13 13:39:08 +05:30
2021-12-11 22:18:48 +05:30
## AWS Implementation patterns information
2018-12-13 13:39:08 +05:30
2021-12-11 22:18:48 +05:30
The following are the currently available implementation patterns for GitLab when it is implemented on AWS.
2018-12-13 13:39:08 +05:30
2021-12-11 22:18:48 +05:30
### GitLab Site Reliability Engineering (SRE) for AWS
2020-04-08 14:13:33 +05:30
2022-08-13 15:12:31 +05:30
[GitLab Site Reliability Engineering (SRE) for AWS](gitlab_sre_for_aws.md) - information for planning, implementing, upgrading, and long term management of GitLab instances and runners on AWS.
2018-12-13 13:39:08 +05:30
2021-12-11 22:18:48 +05:30
### Patterns to Install GitLab Cloud Native Hybrid on AWS EKS (HA)
2018-12-13 13:39:08 +05:30
2021-12-11 22:18:48 +05:30
[Provision GitLab Cloud Native Hybrid on AWS EKS (HA)](gitlab_hybrid_on_aws.md). This document includes instructions, patterns, and automation for installing GitLab Cloud Native Hybrid on AWS EKS. It also includes [Bill of Materials](https://en.wikipedia.org/wiki/Bill_of_materials) listings and links to Infrastructure as Code. GitLab Cloud Native Hybrid is the supported way to put as much of GitLab as possible into Kubernetes.
2018-12-13 13:39:08 +05:30
2021-12-11 22:18:48 +05:30
### Patterns to Install Omnibus GitLab on AWS EC2 (HA)
2018-12-13 13:39:08 +05:30
2021-12-11 22:18:48 +05:30
[Omnibus GitLab on AWS EC2 (HA)](manual_install_aws.md) - instructions for installing GitLab on EC2 instances. Manual instructions to build a GitLab instance or create your own Infrastructure as Code (IaC).
### Patterns for EKS cluster provisioning
2018-12-13 13:39:08 +05:30
2021-11-11 11:23:49 +05:30
[EKS Cluster Provisioning Patterns](eks_clusters_aws.md) - considerations for setting up EKS cluster for runners and for integrating.
2021-03-08 18:12:59 +05:30
2022-08-13 15:12:31 +05:30
### Patterns for Scaling HA GitLab Runner on AWS EC2 Auto Scaling group (ASG)
2019-09-30 21:07:59 +05:30
2021-11-11 11:23:49 +05:30
The following repository is self-contained in regard to enabling this pattern: [GitLab HA Scaling Runner Vending Machine for AWS EC2 ASG](https://gitlab.com/guided-explorations/aws/gitlab-runner-autoscaling-aws-asg/). The [feature list for this implementation pattern](https://gitlab.com/guided-explorations/aws/gitlab-runner-autoscaling-aws-asg/-/blob/main/FEATURES.md) is good to review to understand the complete value it can deliver.
2020-05-24 23:13:21 +05:30
2022-01-26 12:08:38 +05:30
### Patterns for Using GitLab with AWS
[The Guided Explorations' subgroup for AWS](https://gitlab.com/guided-explorations/aws) contains a variety of working example projects for:
- Using GitLab and AWS together.
- Running GitLab infrastructure on AWS.
2022-03-02 08:16:31 +05:30
- Retrieving temporary credentials for access to AWS services.
2022-01-26 12:08:38 +05:30
2021-12-11 22:18:48 +05:30
## AWS known issues list
2022-08-13 15:12:31 +05:30
Known issues are gathered from within GitLab and from customer reported issues. Customers successfully implement GitLab with a variety of "as a Service" components that GitLab has not specifically been designed for, nor has ongoing testing for. While GitLab does take partner technologies very seriously, the highlighting of known issues here is a convenience for implementers and it does not imply that GitLab has targeted compatibility with, nor carries any type of guarantee of running on the partner technology where the issues occur. Consult individual issues to understand the GitLab stance and plans on any given known issue.
2021-12-11 22:18:48 +05:30
See the [GitLab AWS known issues list](https://gitlab.com/gitlab-com/alliances/aws/public-tracker/-/issues?label_name%5B%5D=AWS+Known+Issue) for a complete list.
2023-04-23 21:23:45 +05:30
## Provision a single GitLab instance on AWS
If you want to provision a single GitLab instance on AWS, you have two options:
- The marketplace subscription
- The official GitLab AMIs
### Marketplace subscription
GitLab provides a 5 user subscription as an AWS Marketplace subscription to help teams of all sizes to get started with an Ultimate licensed instance in record time. The Marketplace subscription can be easily upgraded to any GitLab licensing via an AWS Marketplace Private Offer, with the convenience of continued AWS billing. No migration is necessary to obtain a larger, non-time based license from GitLab. Per-minute licensing is automatically removed when you accept the private offer.
For a tutorial on provisioning a GitLab Instance via a Marketplace Subscription, [use this tutorial](https://gitlab.awsworkshop.io/040_partner_setup.html). The tutorial links to the [GitLab Ultimate Marketplace Listing](https://aws.amazon.com/marketplace/pp/prodview-g6ktjmpuc33zk), but you can also use the [GitLab Premium Marketplace Listing](https://aws.amazon.com/marketplace/pp/prodview-amk6tacbois2k) to provision an instance.
### Official GitLab releases as AMIs
2022-01-26 12:08:38 +05:30
2022-08-13 15:12:31 +05:30
GitLab produces Amazon Machine Images (AMI) during the regular release process. The AMIs can be used for single instance GitLab installation or, by configuring `/etc/gitlab/gitlab.rb`, can be specialized for specific GitLab service roles (for example a Gitaly server). Older releases remain available and can be used to migrate an older GitLab server to AWS.
2022-01-26 12:08:38 +05:30
2023-04-23 21:23:45 +05:30
Initial licensing can either be the Free Enterprise License (EE) or the open source Community Edition (CE). The Enterprise Edition provides the easiest path forward to a licensed version if the need arises.
2022-01-26 12:08:38 +05:30
Currently the Amazon AMI uses the Amazon prepared Ubuntu AMI (x86 and ARM are available) as its starting point.
NOTE:
2022-08-13 15:12:31 +05:30
When deploying a GitLab instance using the official AMI, the root password to the instance is the EC2 **Instance** ID (not the AMI ID). This way of setting the root account password is specific to official GitLab published AMIs ONLY.
2022-01-26 12:08:38 +05:30
2022-08-13 15:12:31 +05:30
Instances running on Community Edition (CE) require a migration to Enterprise Edition (EE) to subscribe to the GitLab Premium or Ultimate plan. If you want to pursue a subscription, using the Free-forever plan of Enterprise Edition is the least disruptive method.
2022-01-26 12:08:38 +05:30
NOTE:
2022-08-13 15:12:31 +05:30
Because any given GitLab upgrade might involve data disk updates or database schema upgrades, swapping out the AMI is not sufficient for taking upgrades.
2022-01-26 12:08:38 +05:30
2022-11-25 23:54:43 +05:30
1. Log in to the AWS Web Console, so that selecting the links in the following step take you directly to the AMI list.
2022-01-26 12:08:38 +05:30
1. Pick the edition you want:
- [GitLab Enterprise Edition](https://console.aws.amazon.com/ec2/v2/home?region=us-east-1#Images:visibility=public-images;ownerAlias=782774275127;search=GitLab%20EE;sort=desc:name): If you want to unlock the enterprise features, a license is needed.
- [GitLab Community Edition](https://console.aws.amazon.com/ec2/v2/home?region=us-east-1#Images:visibility=public-images;ownerAlias=782774275127;search=GitLab%20CE;sort=desc:name): The open source version of GitLab.
2023-03-04 22:38:38 +05:30
- [GitLab Premium or Ultimate Marketplace (pre-licensed)](https://console.aws.amazon.com/ec2/v2/home?region=us-east-1#Images:visibility=public-images;source=Marketplace;search=GitLab%20EE;sort=desc:name): 5 user license built into per-minute billing.
2022-01-26 12:08:38 +05:30
2022-08-13 15:12:31 +05:30
1. AMI IDs are unique per region, so after you've loaded one of the above, select the desired target region in the upper right of the console to see the appropriate AMIs.
2022-01-26 12:08:38 +05:30
1. After the console is loaded, you can add additional search criteria to narrow further. For instance, type `13.` to find only 13.x versions.
2022-08-13 15:12:31 +05:30
1. To launch an EC2 Machine with one of the listed AMIs, check the box at the start of the relevant row, and select **Launch** near the top of left of the page.
2022-01-26 12:08:38 +05:30
NOTE:
If you are trying to restore from an older version of GitLab while moving to AWS, find the
[Enterprise and Community Editions before GitLab 11.10.3](https://console.aws.amazon.com/ec2/v2/home?region=us-east-1#Images:visibility=public-images;ownerAlias=855262394183;sort=desc:name).
2021-11-11 11:23:49 +05:30
## Additional details on implementation patterns
2020-05-24 23:13:21 +05:30
2021-11-11 11:23:49 +05:30
GitLab implementation patterns build upon [GitLab Reference Architectures](../../administration/reference_architectures/index.md) in the following ways.
2020-05-24 23:13:21 +05:30
2021-11-11 11:23:49 +05:30
### Cloud platform well architected compliance
2020-05-24 23:13:21 +05:30
2021-11-11 11:23:49 +05:30
Testing-backed architectural qualification is a fundamental concept behind implementation patterns:
2020-05-24 23:13:21 +05:30
2022-08-13 15:12:31 +05:30
- Implementation patterns maintain GitLab Reference Architecture compliance and provide [GitLab Performance Tool](https://gitlab.com/gitlab-org/quality/performance) (GPT) reports to demonstrate adherence to them.
2021-11-11 11:23:49 +05:30
- Implementation patterns may be qualified by and/or contributed to by the technology vendor. For instance, an implementation pattern for AWS may be officially reviewed by AWS.
- Implementation patterns may specify and test Cloud Platform PaaS services for suitability for GitLab. This testing can be coordinated and help qualify these technologies for Reference Architectures. For instance, qualifying compatibility with and availability of runtime versions of top level PaaS such as those for PostgreSQL and Redis.
- Implementation patterns can provided qualified testing for platform limitations, for example, ensuring Gitaly Cluster can work correctly on specific Cloud Platform availability zone latency and throughput characteristics or qualifying what levels of available platform partner local disk performance is workable for Gitaly server to operate with integrity.
2019-09-30 21:07:59 +05:30
2021-11-11 11:23:49 +05:30
### Platform partner specificity
2018-12-13 13:39:08 +05:30
2021-11-11 11:23:49 +05:30
Implementation patterns enable platform-specific terminology, best practice architecture, and platform-specific build manifests:
2020-05-24 23:13:21 +05:30
2021-11-11 11:23:49 +05:30
- Implementation patterns are more vendor specific. For instance, advising specific compute instances / VMs / nodes instead of vCPUs or other generalized measures.
- Implementation patterns are oriented to implementing good architecture for the vendor in view.
- Implementation patterns are written to an audience who is familiar with building on the infrastructure that the implementation pattern targets. For example, if the implementation pattern is for GCP, the specific terminology of GCP is used - including using the specific names for PaaS services.
- Implementation patterns can test and qualify if the versions of PaaS available are compatible with GitLab (for example, PostgreSQL, Redis, etc.).
2018-12-13 13:39:08 +05:30
2021-11-11 11:23:49 +05:30
### Platform as a Service (PaaS) specification and usage
2018-12-13 13:39:08 +05:30
2023-03-04 22:38:38 +05:30
Platform as a Service options are a huge portion of the value provided by Cloud Platforms as they simplify operational complexity and reduce the SRE and security skilling required to operate advanced, highly available technology services. Implementation patterns can be pre-qualified against the partner PaaS options.
2018-12-13 13:39:08 +05:30
2021-12-11 22:18:48 +05:30
- Implementation patterns help implementers understand what PaaS options are known to work and how to choose between PaaS solutions when a single platform has more than one PaaS option for the same GitLab role.
2021-11-11 11:23:49 +05:30
- For instance, where reference architectures do not have a specific recommendation on what technology is leveraged for GitLab outbound email services or what the sizing should be - a Reference Implementation may advise using a cloud providers Email as a Service (PaaS) and possibly even with specific settings.
2018-12-13 13:39:08 +05:30
2021-11-11 11:23:49 +05:30
### Cost optimizing engineering
2018-12-13 13:39:08 +05:30
2021-11-11 11:23:49 +05:30
Cost engineering is a fundamental aspect of Cloud Architecture and frequently the savings capabilities available on a platform exert strong influence on how to build out scaled computing.
2018-12-13 13:39:08 +05:30
2021-11-11 11:23:49 +05:30
- Implementation patterns may define GPT tested autoscaling for various aspects of GitLab infrastructure, including minimum idling configurations and scaling speeds.
- Implementation patterns may provide GPT testing for advised configurations that go beyond the scope of reference architectures, for instance GPT tested elastic scaling configurations for Cloud Native Hybrid that enable lower resourcing during periods of lower usage (for example on the weekend).
- Implementation patterns may engineer specifically for the savings models available on a platform provider. An AWS example would be maximizing the occurrence of a specific instance type for taking advantage of reserved instances.
- Implementation patterns may leverage ephemeral compute where appropriate and with appropriate customer guidelines. For instance, a Kubernetes node group dedicated to runners on ephemeral compute (with appropriate GitLab Runner tagging to indicate the compute type).
- Implementation patterns may include vendor specific cost calculators.
2018-12-13 13:39:08 +05:30
2021-11-11 11:23:49 +05:30
### Actionability and automatability orientation
2020-05-24 23:13:21 +05:30
2021-11-11 11:23:49 +05:30
Implementation patterns are one step closer to specifics that can be used as a source for build instructions and automation code:
2018-12-13 13:39:08 +05:30
2021-11-11 11:23:49 +05:30
- Implementation patterns enable builders to generate a list of vendor specific resources required to implement GitLab for a given Reference Architecture.
- Implementation patterns enable builders to use manual instructions or to create automation to build out the reference implementation.
2018-12-13 13:39:08 +05:30
2021-11-11 11:23:49 +05:30
## Supplementary implementation patterns
2018-12-13 13:39:08 +05:30
2021-11-11 11:23:49 +05:30
Implementation patterns may also provide specialized implementations beyond the scope of reference architecture compliance, especially where the cost of enablement can be more appropriately managed.
2018-12-13 13:39:08 +05:30
2021-11-11 11:23:49 +05:30
For example:
2018-12-13 13:39:08 +05:30
2021-11-18 22:05:49 +05:30
- Small, self-contained GitLab instances for per-person administration training, perhaps on Kubernetes so that a deployment cluster is self-contained as well.
2021-11-11 11:23:49 +05:30
- GitLab Runner implementation patterns, including using platform-specific PaaS.
2020-05-24 23:13:21 +05:30
2021-11-11 11:23:49 +05:30
## Intended audiences and contributors
2020-05-24 23:13:21 +05:30
2021-11-11 11:23:49 +05:30
The primary audiences for and contributors to this information is the GitLab **Implementation Eco System** which consists of at least:
2020-04-22 19:07:51 +05:30
2021-11-11 11:23:49 +05:30
GitLab Implementation Community:
2020-04-22 19:07:51 +05:30
2021-11-11 11:23:49 +05:30
- Customers
- GitLab Channel Partners (Integrators)
- Platform Partners
2020-04-22 19:07:51 +05:30
2021-11-11 11:23:49 +05:30
GitLab Internal Implementation Teams:
2020-04-22 19:07:51 +05:30
2021-11-11 11:23:49 +05:30
- Quality / Distribution / Self-Managed
- Alliances
- Training
- Support
- Professional Services
- Public Sector