Skip to content

This module will help you provision a GKE (Google Kubernetes Engine) Cluster on GCP with Terraform

License

Notifications You must be signed in to change notification settings

ducmeit1/tf-gke-gcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9a64acc · Oct 15, 2020

History

4 Commits
Oct 12, 2020
Oct 15, 2020
Oct 12, 2020
Oct 15, 2020
Oct 15, 2020
Oct 15, 2020
Oct 15, 2020

Repository files navigation

Provision GKE Cluster on GCP with Terraform

This module will help provision a GKE (Google Kubernetes Engine) Cluster on GCP with Terraform. This module only provision Cluster without Node Pool, you could use module tf-gke-nodepool-gcp to create Node Pool.

Usages

module "gke-cluster" {
    source          = "github.com/ducmeit1/tf-gke-gcp"
    
    name            = "gke-dc1"
    gcp_project     = "ducmeit1"
    gcp_region      = "asia-east1"
    gcp_location    = "asia-east1"
    gcp_network     = "global-network"
    gcp_subnetwork  = "gke-dc1-subnet"
    master_ipv4_cidr_block  = "10.255.10.1/28"
    master_authorized_networks_config = [{
        cidr_blocks = [{
            cidr_block      = "10.255.9.1/24"
            display_name    = "bastion"
        }],
    }]
}
terraform plan
terraform apply --auto-approve

About

This module will help you provision a GKE (Google Kubernetes Engine) Cluster on GCP with Terraform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages