Skip to content

Latest commit

 

History

History
87 lines (76 loc) · 3.48 KB

README.md

File metadata and controls

87 lines (76 loc) · 3.48 KB

Obsrv Installation

Prerequisites:

  1. Install terragrunt. Please see Install Terragrunt for reference.

AWS

Prerequisites:

  1. You will need key-secret pair to access AWS. Learn how to create or manage these at Managing access keys for IAM users. Please export these variables in terminal session
export AWS_ACCESS_KEY_ID=mykey
export AWS_SECRET_ACCESS_KEY=mysecret
  1. You will require an S3 bucket to store tf-state. Learn how to create or manage these at Create an Amazon S3 bucket. Please export this variable at
export AWS_TERRAFORM_BACKEND_BUCKET_NAME=mybucket
export AWS_TERRAFORM_BACKEND_BUCKET_REGION=myregion
  1. If you need to run your cluster in multiple availability zones, then please update below line in terraform/aws/main.tf
# default, single AZ
eks_nodes_subnet_ids  = module.vpc.single_zone_public_subnets_id
# Multiple AZ
eks_nodes_subnet_ids  = module.vpc.multi_zone_public_subnets_ids

Steps:

In order to complete the installation, please run the below steps in the same terminal.

cd terraform/aws
terragrunt init
terragrunt plan
terragrunt apply

GCP

Prerequisites:

  1. Setup the gcoud CLI. Please see Installing Google Cloud SDK for reference.
  2. Initialize and Authenticate the gcloud CLI. Please see Initializing Cloud SDK for reference.
gcloud init
gcloud auth application-default login
  1. Install additional dependencies to authenticate with GKE. Please see Installing the gke-gcloud-auth-plugin for reference.
gcloud components install gke-gcloud-auth-plugin
  1. Create a project and export it as variable. Please see Creating and Managing Projects for reference.
export GOOGLE_PROJECT_ID=myproject
export GOOGLE_TERRAFORM_BACKEND_BUCKET=mybucket
  1. Enable the Kubernets Engine API for the created project. Please see Enabling the Kubernetes Engine API for reference.

Steps:

In order to complete the installation, please run the below steps in the same terminal.

cd terraform/gcp
terragrunt init
terragrunt plan --var-file=vars/cluster_overrides.tfvars
terragrunt apply --var-file=vars/cluster_overrides.tfvars

Azure

Prerequisites:

  1. Log into your cloud environment in your terminal. Please see Sign in with Azure CLI for reference.
az login
  1. Create a storage account and export the below variables in your terminal. Please see Create a storage container for reference. Export the below variables in your terminal session
export AZURE_TERRAFORM_BACKEND_RG=myregion
export AZURE_TERRAFORM_BACKEND_STORAGE_ACCOUNT=mystorage
export AZURE_TERRAFORM_BACKEND_CONTAINER=mycontainer

Steps:

In order to complete the installation, please run the below steps in the same terminal.

cd terraform/azure
terragrunt init
terragrunt plan
terragrunt apply