Skip to content

truefoundry/terraform-google-truefoundry-cluster-classic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-google-truefoundry-cluster-classic

Truefoundry Google Cloud Cluster Classic Module

Requirements

Name Version
terraform >= 1.4
google 5.18.0
google-beta 5.18.0

Providers

Name Version
google 5.18.0
google-beta 5.18.0

Modules

No modules.

Resources

Name Type
google-beta_google_container_cluster.cluster resource
google_compute_firewall.fix_webhooks resource
google_container_node_pool.control_plane_pool resource
google_container_node_pool.generic resource

Inputs

Name Description Type Default Required
allowed_ip_ranges Allowed IP ranges to connect to master list(string)
[
"0.0.0.0/0"
]
no
cluster_generic_node_config Cluster Generic Node configuration
object({
disk_size_gb = optional(string, "100")
disk_type = optional(string, "pd-balanced")
machine_type = optional(string, "e2-medium")
enable_secure_boot = optional(bool, true)
enable_integrity_monitoring = optional(bool, true)
auto_repair = optional(bool, true)
auto_upgrade = optional(bool, true)
node_count = optional(number, 1)
workload_metadata_config_mode = optional(string, "GKE_METADATA")
service_account = optional(string, "default")
preemptible = optional(bool, false)
spot = optional(bool, true)
})
{} no
cluster_master_ipv4_cidr_block Master nodes ipv4 cidr string n/a yes
cluster_name Name of the cluster string n/a yes
cluster_nap_node_config Cluster NAP Node configuration
object({
disk_size_gb = optional(string, "300")
disk_type = optional(string, "pd-balanced")
enable_secure_boot = optional(bool, true)
enable_integrity_monitoring = optional(bool, true)
autoscaling_profile = optional(string, "OPTIMIZE_UTILIZATION")
max_cpu = optional(number, 1024)
max_memory = optional(number, 8172)
auto_repair = optional(bool, true)
auto_upgrade = optional(bool, true)
max_surge = optional(number, 1)
max_unavailable = optional(number, 0)
})
{} no
cluster_network_id Network ID for the cluster string n/a yes
cluster_networking_mode Networking mode for the cluster. Values can be VPC_NATIVE (recommended) or ROUTES. VPC_NATIVE is default after google-beta 5.0.0 string "VPC_NATIVE" no
cluster_node_locations AZ for nodes - this should match the region list(string) n/a yes
cluster_secondary_range_name VPC Secondary range name for pods string "" no
cluster_subnet_id Subnetwork name for the cluster. string n/a yes
control_plane_enabled Whether control plane is enabled or not bool false no
control_plane_pool_config Control plane node pool config
object({
disk_size_gb = optional(string, "100")
disk_type = optional(string, "pd-balanced")
machine_type = optional(string, "e2-medium")
autoscaling = optional(object({
min_node_count = optional(number, 1)
max_node_count = optional(number, 2)
location_policy = optional(string, "BALANCED")
}), {})
enable_secure_boot = optional(bool, true)
enable_integrity_monitoring = optional(bool, true)
auto_repair = optional(bool, true)
auto_upgrade = optional(bool, true)
workload_metadata_config_mode = optional(string, "GKE_METADATA")
service_account = optional(string, "default")
labels = optional(map(string), {
"class.truefoundry.io/component" = "control-plane"
})
taints = optional(object(
{
key = optional(string, "class.truefoundry.io/component")
value = optional(string, "control-plane")
effect = optional(string, "NO_SCHEDULE")
}
), {})
preemptible = optional(bool, false)
spot = optional(bool, true)
})
{} no
deletion_protection Deletion protection enabled/disabled bool false no
enable_container_image_streaming Enable/disable container image streaming bool true no
kubernetes_version Version of GKE string "1.28" no
max_pods_per_node Maximum pods per node string "32" no
network_tags A list of network tags to add to all instances list(string) [] no
oauth_scopes Oauth Scopes to attach to the cluste list(string)
[
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/devstorage.read_only",
"https://www.googleapis.com/auth/logging.write",
"https://www.googleapis.com/auth/monitoring",
"https://www.googleapis.com/auth/service.management.readonly",
"https://www.googleapis.com/auth/servicecontrol",
"https://www.googleapis.com/auth/trace.append"
]
no
project GCP Project string n/a yes
region region string n/a yes
services_secondary_range_name VPC Secondary range name for services string "" no
shared_vpc Flag to enable shared VPC bool false no
tags A map of tags to add to all resources map(string) {} no

Outputs

Name Description
cluster_endpoint Endpoint for your Kubernetes API server
cluster_id The id of the GKE cluster
cluster_master_version Master version for the cluster
cluster_name The name of the GKE cluster
cluster_secondary_range_name Cluster secondary range name for pod IPs
services_secondary_range_name Cluster secondry range name for service IPs