All Projects → terraform-google-modules → Terraform Google Gke Gitlab

terraform-google-modules / Terraform Google Gke Gitlab

Licence: apache-2.0
Installs GitLab on Kubernetes Engine

Labels

Projects that are alternatives of or similar to Terraform Google Gke Gitlab

Infra Personal
Terraform for setting up my personal infrastructure
Stars: ✭ 45 (-19.64%)
Mutual labels:  hcl
Tf sns email
Terraform Module to create an email backed SNS topic
Stars: ✭ 49 (-12.5%)
Mutual labels:  hcl
Terraform Consul Cluster
Demonstrates how to create a resilient Consul cluster on AWS, using Terraform. Companion to my article on dwmkerr.com.
Stars: ✭ 52 (-7.14%)
Mutual labels:  hcl
Live Infrastructure
Live video transcoding infrastructure
Stars: ✭ 48 (-14.29%)
Mutual labels:  hcl
Terraform Aws Github Ci
[DEPRECATED] Serverless CI for GitHub using AWS CodeBuild with PR and status support
Stars: ✭ 49 (-12.5%)
Mutual labels:  hcl
Docs Examples
Open in Cloud Shell Examples for the Google provider docs
Stars: ✭ 50 (-10.71%)
Mutual labels:  hcl
Ansible Role Cobalt Strike
An Ansible role for installing Cobalt Strike.
Stars: ✭ 43 (-23.21%)
Mutual labels:  hcl
Bastions On Demand
Create and destroy bastions on demand with Fargate.
Stars: ✭ 54 (-3.57%)
Mutual labels:  hcl
Hackathon
アイドルを愛でる。アイマスにContributeする
Stars: ✭ 49 (-12.5%)
Mutual labels:  hcl
Terraform Elasticache Example
Example Terraform config for creating an Elasticache cluster
Stars: ✭ 52 (-7.14%)
Mutual labels:  hcl
Resticprofile
Configuration profiles for restic backup
Stars: ✭ 48 (-14.29%)
Mutual labels:  hcl
Terraform Aws Dynamodb
Terraform module that implements AWS DynamoDB with support for AutoScaling
Stars: ✭ 49 (-12.5%)
Mutual labels:  hcl
Hashicorp
Random code for HashiCorp related projects, training, etc.
Stars: ✭ 51 (-8.93%)
Mutual labels:  hcl
Ssh Aliases
A tool for ~/.ssh/config generation
Stars: ✭ 46 (-17.86%)
Mutual labels:  hcl
Terraform Aws Vpc Peering Multi Account
Terraform module to provision a VPC peering across multiple VPCs in different accounts by using multiple providers
Stars: ✭ 52 (-7.14%)
Mutual labels:  hcl
Atlantis On Gke
A set of @HashiCorp Terraform configurations for running Atlantis on @GoogleCloud GKE
Stars: ✭ 44 (-21.43%)
Mutual labels:  hcl
No Inet Gke Cluster
Stars: ✭ 50 (-10.71%)
Mutual labels:  hcl
Aws Provisioning
To provision AWS resources
Stars: ✭ 56 (+0%)
Mutual labels:  hcl
Terraform Aws Alb
Terraform module to provision a standard ALB for HTTP/HTTP traffic
Stars: ✭ 53 (-5.36%)
Mutual labels:  hcl
Airflow Toolkit
Any Airflow project day 1, you can spin up a local desktop Kubernetes Airflow environment AND one in Google Cloud Composer with tested data pipelines(DAGs) 🖥 >> [ 🚀, 🚢 ]
Stars: ✭ 51 (-8.93%)
Mutual labels:  hcl

terraform-google-gke-gitlab

This module creates a reslient and fault tolerant GitLab installation using Google Kubernetes Engine (GKE) as the computing environment and the following services for storing data:

  • CloudSQL for PostgreSQL
  • Memorystore for Redis
  • Cloud Storage

GitLab on GKE architecture diagram

Usage

There are examples included in the examples folder but simple usage is as follows:

module "gke-gitlab" {
  source                     = "terraform-google-modules/gke-gitlab/google"
  project_id                 = "<PROJECT ID>"
  certmanager_email          = "[email protected]"
}

Then perform the following commands on the root folder:

  • terraform init to get the plugins
  • terraform plan to see the infrastructure plan
  • terraform apply to apply the infrastructure build
  • terraform destroy to destroy the built infrastructure

Inputs

Name Description Type Default Required
certmanager_email Email used to retrieve SSL certificates from Let's Encrypt any n/a yes
domain Domain for hosting gitlab functionality (ie mydomain.com would access gitlab at gitlab.mydomain.com) string "" no
gitlab_address_name Name of the address to use for GitLab ingress string "" no
gitlab_db_name Instance name for the GitLab Postgres database. string "gitlab-db" no
gitlab_db_password Password for the GitLab Postgres user string "" no
gitlab_db_random_prefix Sets random suffix at the end of the Cloud SQL instance name. bool false no
gitlab_nodes_subnet_cidr Cidr range to use for gitlab GKE nodes subnet string "10.0.0.0/16" no
gitlab_pods_subnet_cidr Cidr range to use for gitlab GKE pods subnet string "10.3.0.0/16" no
gitlab_runner_install Choose whether to install the gitlab runner in the cluster bool true no
gitlab_services_subnet_cidr Cidr range to use for gitlab GKE services subnet string "10.2.0.0/16" no
gke_machine_type Machine type used for the node-pool string "n1-standard-4" no
gke_version Version of GKE to use for the GitLab cluster string "1.16" no
helm_chart_version Helm chart version to install during deployment string "4.2.4" no
project_id GCP Project to deploy resources any n/a yes
region GCP region to deploy resources to string "us-central1" no

Outputs

Name Description
cluster_ca_certificate CA Certificate for the GKE cluster that GitLab is deployed in.
cluster_location Location of the GKE cluster that GitLab is deployed in.
cluster_name Name of the GKE cluster that GitLab is deployed in.
gitlab_address IP address where you can connect to your GitLab instance
gitlab_url URL where you can access your GitLab instance
host Host for the GKE cluster that GitLab is deployed in.
root_password_instructions Instructions for getting the root user's password for initial setup
token Token for the GKE cluster that GitLab is deployed in.

Requirements

Before this module can be used on a project, you must ensure that the following pre-requisites are fulfilled:

  1. Terraform is installed on the machine where Terraform is executed.
  2. The Service Account you execute the module with has the right permissions.

The project factory can be used to provision projects with the correct APIs active.

Software Dependencies

Terraform

Configure a Service Account

In order to execute this module you must have a Service Account with the following project roles:

  • roles/owner

Install

Terraform

Be sure you have the correct Terraform version (0.13.x), you can choose the binary here:

File structure

The project has the following folders and files:

  • /: root folder
  • /examples: examples for using this module
  • /helpers: Helper scripts
  • /test: Folders with files for testing the module (see Testing section on this file)
  • /main.tf: main file for this module, contains all the resources to create
  • /variables.tf: all the variables for the module
  • /output.tf: the outputs of the module
  • /README.md: this file
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].