Skip to content

Instantly share code, notes, and snippets.

@mynameisameed
Last active May 1, 2022 20:07
Show Gist options
  • Save mynameisameed/85b80f8bbabda9a5ffe47e88468eb404 to your computer and use it in GitHub Desktop.
Save mynameisameed/85b80f8bbabda9a5ffe47e88468eb404 to your computer and use it in GitHub Desktop.
credentials = "./terraform-gke-keyfile.json" # service account json file name & path
project_id = "<project-name>" # make sure you enter your project id from gcp
region = "<region>" # region where you wanna create in
zones = ["<region>-a", "<region>-b", "<region>-c"] # zone
name = "terraform-gke" # name of your cluster
machine_type = "<machine_type>" # type of compute size
min_count = 1
max_count = 3
disk_size_gb = 10
service_account = "<service-account-name>@<project-name>.iam.gserviceaccount.com" # service account name which we created
initial_node_count = 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment