Skip to content

Commit 079711c

Browse files
add back
1 parent e41b2b0 commit 079711c

File tree

7 files changed

+17
-23
lines changed

7 files changed

+17
-23
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ No resources.
104104
| <a name="input_cluster_autoscaling_max_cpu"></a> [cluster\_autoscaling\_max\_cpu](#input\_cluster\_autoscaling\_max\_cpu) | The maximum CPU usage across all node pools to trigger the cluster autoscaler to provision more node pools | `string` | `"8"` | no |
105105
| <a name="input_cluster_autoscaling_max_memory_gb"></a> [cluster\_autoscaling\_max\_memory\_gb](#input\_cluster\_autoscaling\_max\_memory\_gb) | The maximum memory usage across all node pools to trigger the cluster autoscaler to provision more node pools | `string` | `"32"` | no |
106106
| <a name="input_cluster_name"></a> [cluster\_name](#input\_cluster\_name) | The name of the GKE cluster | `string` | n/a | yes |
107+
| <a name="input_cluster_secondary_range_cidr"></a> [cluster\_secondary\_range\_cidr](#input\_cluster\_secondary\_range\_cidr) | The secondary range to use for pods | `string` | n/a | yes |
107108
| <a name="input_cluster_secondary_range_name"></a> [cluster\_secondary\_range\_name](#input\_cluster\_secondary\_range\_name) | The name of the secondary range to use for pods | `string` | `"gke-pods"` | no |
108109
| <a name="input_jump_host_ip_address"></a> [jump\_host\_ip\_address](#input\_jump\_host\_ip\_address) | The internal IP address of the jump host | `string` | n/a | yes |
109110
| <a name="input_jump_host_ip_address_name"></a> [jump\_host\_ip\_address\_name](#input\_jump\_host\_ip\_address\_name) | Name of the IP address resource | `string` | `"jump-host-ip"` | no |
@@ -114,6 +115,7 @@ No resources.
114115
| <a name="input_node_pools"></a> [node\_pools](#input\_node\_pools) | The node pools to create | <pre>list(object({<br/> name = string<br/> node_disk_size_gb = string<br/> node_machine_type = string<br/> total_min_node_count = number<br/> total_max_node_count = number<br/> }))</pre> | n/a | yes |
115116
| <a name="input_project_id"></a> [project\_id](#input\_project\_id) | GCP project id | `string` | `"florenciacomuzzi"` | no |
116117
| <a name="input_region"></a> [region](#input\_region) | GCP region | `string` | `"us-east1"` | no |
118+
| <a name="input_services_secondary_range_cidr"></a> [services\_secondary\_range\_cidr](#input\_services\_secondary\_range\_cidr) | The secondary range to use for services | `string` | `"10.30.0.0/16"` | no |
117119
| <a name="input_services_secondary_range_name"></a> [services\_secondary\_range\_name](#input\_services\_secondary\_range\_name) | The name of the secondary range to use for services | `string` | `"gke-services"` | no |
118120
| <a name="input_subnet_cidr"></a> [subnet\_cidr](#input\_subnet\_cidr) | The CIDR block for the subnet | `string` | n/a | yes |
119121
| <a name="input_subnet_name"></a> [subnet\_name](#input\_subnet\_name) | The name of the subnet | `string` | n/a | yes |

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ module "vpc" {
55
subnet_cidr = var.subnet_cidr
66
subnet_name = var.subnet_name
77
cluster_secondary_range_name = var.cluster_secondary_range_name
8-
cluster_secondary_range_cidr = var.cluster_secondary_range_cidr
98
services_secondary_range_name = var.services_secondary_range_name
9+
cluster_secondary_range_cidr = var.cluster_secondary_range_cidr
1010
services_secondary_range_cidr = var.services_secondary_range_cidr
1111
}
1212

modules/private-k8s-cluster/variables.tf

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,6 @@ variable "services_secondary_range_name" {
3636
description = "The name of the secondary range to use for services"
3737
}
3838

39-
# variable "cluster_secondary_range_cidr" {
40-
# type = string
41-
# description = "The secondary range to use for pods"
42-
# }
43-
#
44-
# variable "services_secondary_range_cidr" {
45-
# type = string
46-
# default = "10.30.0.0/16"
47-
# description = "The secondary range to use for services"
48-
# }
49-
5039
variable "cluster_name" {
5140
description = "The name of the GKE cluster"
5241
type = string

modules/vpc/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ No modules.
3030
| <a name="input_cluster_secondary_range_cidr"></a> [cluster\_secondary\_range\_cidr](#input\_cluster\_secondary\_range\_cidr) | The secondary range to use for pods | `string` | `"10.20.0.0/16"` | no |
3131
| <a name="input_cluster_secondary_range_name"></a> [cluster\_secondary\_range\_name](#input\_cluster\_secondary\_range\_name) | The name of the secondary range to use for pods | `string` | `"gke-pods"` | no |
3232
| <a name="input_network_name"></a> [network\_name](#input\_network\_name) | The name of the VPC network | `string` | n/a | yes |
33-
| <a name="input_project_id"></a> [project\_id](#input\_project\_id) | GCP project id | `string` | n/a | yes |
3433
| <a name="input_region"></a> [region](#input\_region) | GCP region | `string` | `"us-east1"` | no |
3534
| <a name="input_services_secondary_range_cidr"></a> [services\_secondary\_range\_cidr](#input\_services\_secondary\_range\_cidr) | The name of the secondary range to use for services | `string` | `"10.30.0.0/16"` | no |
3635
| <a name="input_services_secondary_range_name"></a> [services\_secondary\_range\_name](#input\_services\_secondary\_range\_name) | The name of the secondary range to use for services | `string` | `"gke-services"` | no |

variables.tf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ variable "services_secondary_range_name" {
3737
description = "The name of the secondary range to use for services"
3838
}
3939

40-
# variable "cluster_secondary_range_cidr" {
41-
# type = string
42-
# description = "The secondary range to use for pods"
43-
# }
44-
#
45-
# variable "services_secondary_range_cidr" {
46-
# type = string
47-
# default = "10.30.0.0/16"
48-
# description = "The secondary range to use for services"
49-
# }
40+
variable "cluster_secondary_range_cidr" {
41+
type = string
42+
description = "The secondary range to use for pods"
43+
}
44+
45+
variable "services_secondary_range_cidr" {
46+
type = string
47+
default = "10.30.0.0/16"
48+
description = "The secondary range to use for services"
49+
}
5050

5151
variable "cluster_name" {
5252
description = "The name of the GKE cluster"

variables/dev.auto.tfvars

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ cluster_name = "florenciacomuzzi-cluster-dev"
55
subnet_cidr = "10.0.0.0/24"
66
subnet_name = "my-subnet"
77
cluster_secondary_range_name = "gke-pods"
8+
cluster_secondary_range_cidr = "10.11.0.0/21"
89
services_secondary_range_name = "gke-services"
10+
services_secondary_range_cidr = "10.12.0.0/21"
911
master_ipv4_cidr_block = "10.13.0.0/28"
1012
master_authorized_cidr_blocks = [
1113
{

variables/prod.auto.tfvars

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ cluster_name = "florenciacomuzzi-cluster-prod"
55
subnet_cidr = "10.0.0.0/24"
66
subnet_name = "my-subnet"
77
cluster_secondary_range_name = "gke-pods"
8+
cluster_secondary_range_cidr = "10.11.0.0/21"
89
services_secondary_range_name = "gke-services"
10+
services_secondary_range_cidr = "10.12.0.0/21"
911
master_ipv4_cidr_block = "10.13.0.0/28"
1012
master_authorized_cidr_blocks = [
1113
{

0 commit comments

Comments
 (0)