Git Product home page Git Product logo

gitlab-gke-tf-helm's Introduction

Deploy Gitlab production grade on GKE

This Terraform configuration creates a scalable, reliable, and observable GitLab instance on 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

Deployment

module "gitlab" {
  source              = "../modules/gke_gitlab"
  project_id                 = var.project_id
  certmanager_email          = var.certmanager_email
}

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

Inputs

Name Description Type Default Required
certmanager_email Email used to retrieve SSL certificates from Let's Encrypt string n/a yes
gitlab_db_password Password for the GitLab Postgres user string "" no
project_id GCP Project to deploy resources string n/a yes
region GCP region to deploy resources to string "us-central1" no

Outputs

Name Description
gitlab_url URL where you can access your GitLab instance
root_password_instructions Instructions for getting the root user's password for initial setup

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.12.x), you can choose the binary here:

File structure

The project has the following folders and files:

  1. /deployment: Terraform deployment execution
  2. main.tf: main file for this module, contains all the resources to create
  3. variables.tf: all the variables for the module
  4. output.tf: the outputs of the module
  5. providers.tf: project providers (gcp, kubernetes, helm)
  6. versions.tf: required versions
  7. /values.yaml.tpl: Helm values. Learn more about values in helm

gitlab-gke-tf-helm's People

Contributors

aymensegni avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.