Skip to content

alex-akv/cloud-shell-automate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GKE Deployment with Terraform

This repository provides a script to deploy or destroy a GKE cluster and an example Nginx application using Terraform. The Terraform state is stored in a GCS bucket.

Prerequisites

  • Google Cloud project with billing enabled.
  • Permissions to create GKE clusters and GCS buckets.

Usage

  1. Click on the "Run in Cloud Shell" button below.
  2. Run the script with either "deploy" or "destroy" argument:
    • To deploy: ./automate.sh deploy
    • To destroy: ./automate.sh destroy
  3. When prompted, enter your Google Cloud project ID.

Run in Cloud Shell

Click the button below to open this repository in Cloud Shell:

Open in Cloud Shell

Cleanup

To destroy the infrastructure, run:

./automate.sh destroy

Notes

  • The script waits for the GKE cluster to be ready before deploying Nginx.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors