/terraform-gcp-krateo

Terraform module to deploy Krateo on GCP

Primary LanguageHCLMozilla Public License 2.0MPL-2.0

Terraform Module to provision Krateo on a GKE Cluster

This repo is a fork of Learn Terraform - Provision a GKE Cluster repository related to the Provision a GKE Cluster tutorial, containing Terraform configuration files to provision an GKE cluster on GCP.

This sample repo also creates a VPC and subnet for the GKE cluster. This is not required but highly recommended to keep your GKE cluster isolated.

Install

Authorize the SDK to access GCP using your user account credentials and add the SDK to your PATH. This steps requires you to login and select the project you want to work in.

$ gcloud init

Add your account to the Application Default Credentials (ADC). This will allow Terraform to access these credentials to provision resources on GCloud:

$ gcloud auth application-default login

Enable container service:

$ gcloud services enable container

Apply Terraform configuration with your tfvars file:

$ terraform apply -var-file="temp.tfvars"