Skip to content

quortex/terraform-google-gke-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quortex

terraform-google-gke-cluster

A terraform module for Quortex infrastructure GKE cluster layer.

It provides a set of resources necessary to provision the Quortex infrastructure GKE cluster.

This module is available on Terraform Registry.

Get all our terraform modules on Terraform Registry or on Github !

Created resources

This module creates the following resources in GCP:

  • a fully configurable GKE cluster
  • a list of node pools to create in that cluster

Usage example

module "gke-cluster" {
  source  = "quortex/gke-cluster/google"

  # Globally used variables.
  project_id = module.network.project_id
  location   = "europe-west1-c"

  # Prevent resources conflicts for multiple workspaces usage.
  cluster_name = "quortex-${terraform.workspace}"

  network            = module.network.network
  subnetwork         = module.network.subnetwork
  pod_range_name     = module.network.pod_range_name
  svc_range_name     = module.network.svc_range_name
  master_cidr_block  = module.network.master_cidr_block
  min_master_version = "1.14.10-gke.27"
  node_pools = {
    main = {
      machine_type   = "custom-2-4096"
      min_node_count = 1
      max_node_count = 1
    },
    workflow-preemptive-group = {
      machine_type   = "n1-highcpu-16"
      min_node_count = 2
      max_node_count = 4
    }
  }

  # External networks that can access the Kubernetes cluster master through HTTPS.
  master_authorized_networks = {
    quortex  = "147.178.103.209/32"
  }
}

Related Projects

This project is part of our terraform modules to provision a Quortex infrastructure for Google Cloud Platform.

infra_gcp

Check out these related projects.

Help

Got a question?

File a GitHub issue or send us an email.

About

A terraform module for Quortex infrastructure GKE cluster layer.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages