parent
aebb9dc1fe
commit
fbbe88eb23
|
@ -22,6 +22,7 @@ module "cluster-1" {
|
|||
enable_private_nodes = true
|
||||
enable_private_endpoint = true
|
||||
master_ipv4_cidr_block = "192.168.0.0/28"
|
||||
master_global_access = false
|
||||
}
|
||||
labels = {
|
||||
environment = "dev"
|
||||
|
@ -61,7 +62,7 @@ module "cluster-1" {
|
|||
| *node_locations* | Zones in which the cluster's nodes are located. | <code title="list(string)">list(string)</code> | | <code title="">[]</code> |
|
||||
| *peering_config* | Configure peering with the master VPC for private clusters. | <code title="object({ export_routes = bool import_routes = bool project_id = string })">object({...})</code> | | <code title="">null</code> |
|
||||
| *pod_security_policy* | Enable the PodSecurityPolicy feature. | <code title="">bool</code> | | <code title="">null</code> |
|
||||
| *private_cluster_config* | Enable and configure private cluster, private nodes must be true if used. | <code title="object({ enable_private_nodes = bool enable_private_endpoint = bool master_ipv4_cidr_block = string })">object({...})</code> | | <code title="">null</code> |
|
||||
| *private_cluster_config* | Enable and configure private cluster, private nodes must be true if used. | <code title="object({ enable_private_nodes = bool enable_private_endpoint = bool master_ipv4_cidr_block = string master_global_access = bool })">object({...})</code> | | <code title="">null</code> |
|
||||
| *release_channel* | Release channel for GKE upgrades. | <code title="">string</code> | | <code title="">null</code> |
|
||||
| *resource_usage_export_config* | Configure the ResourceUsageExportConfig feature. | <code title="object({ enabled = bool dataset = string })">object({...})</code> | | <code title="{ enabled = null dataset = null }">...</code> |
|
||||
| *vertical_pod_autoscaling* | Enable the Vertical Pod Autoscaling feature. | <code title="">bool</code> | | <code title="">null</code> |
|
||||
|
|
|
@ -131,6 +131,9 @@ resource "google_container_cluster" "cluster" {
|
|||
enable_private_nodes = config.value.enable_private_nodes
|
||||
enable_private_endpoint = config.value.enable_private_endpoint
|
||||
master_ipv4_cidr_block = config.value.master_ipv4_cidr_block
|
||||
master_global_access_config {
|
||||
enabled = config.value.master_global_access
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -195,6 +195,7 @@ variable "private_cluster_config" {
|
|||
enable_private_nodes = bool
|
||||
enable_private_endpoint = bool
|
||||
master_ipv4_cidr_block = string
|
||||
master_global_access = bool
|
||||
})
|
||||
default = null
|
||||
}
|
||||
|
|
|
@ -266,6 +266,7 @@ module "cluster-1" {
|
|||
enable_private_nodes = true
|
||||
enable_private_endpoint = true
|
||||
master_ipv4_cidr_block = var.private_service_ranges.spoke-2-cluster-1
|
||||
master_global_access = true
|
||||
}
|
||||
peering_config = {
|
||||
export_routes = true
|
||||
|
|
|
@ -214,6 +214,7 @@ module "cluster-1" {
|
|||
enable_private_nodes = true
|
||||
enable_private_endpoint = true
|
||||
master_ipv4_cidr_block = var.private_service_ranges.cluster-1
|
||||
master_global_access = true
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue