Skip to content

Commit b9ecefa

Browse files
committed
GCP: add GKE nodepool for SIG Testing
Add another pool so we can use an external terraform module and drop what we currently maintain and reduce our maintenance burden Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
1 parent e21628c commit b9ecefa

File tree

1 file changed

+45
-0
lines changed
  • infra/gcp/terraform/k8s-infra-prow-build

1 file changed

+45
-0
lines changed

infra/gcp/terraform/k8s-infra-prow-build/main.tf

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,51 @@ module "prow_build_nodepool_n1_highmem_8_localssd" {
105105
service_account = module.prow_build_cluster.cluster_node_sa.email
106106
}
107107

108+
module "sig_testing_node_pool_1_c4_highmem_8" {
109+
110+
source = "github.com/GoogleCloudPlatform/cloud-foundation-fabric//modules/gke-nodepool?ref=v39.0.0&depth=1"
111+
project_id = module.project.project_id
112+
name = "sig-testing-pool1"
113+
location = module.prow_build_cluster.cluster.location
114+
cluster_name = module.prow_build_cluster.cluster.name
115+
116+
service_account = {
117+
email = module.prow_build_cluster.cluster_node_sa.email
118+
oauth_scopes = ["https://www.googleapis.com/auth/cloud-platform"]
119+
}
120+
node_locations = [
121+
"us-central1-b",
122+
"us-central1-c",
123+
"us-central1-f",
124+
]
125+
126+
nodepool_config = {
127+
autoscaling = {
128+
max_node_count = 30
129+
min_node_count = 1 # 1 per zone
130+
}
131+
management = {
132+
auto_repair = true
133+
auto_upgrade = true
134+
}
135+
}
136+
137+
node_config = {
138+
machine_type = "c4-highmem-8"
139+
disk_size_gb = 500
140+
disk_type = "hyperdisk-balanced"
141+
image_type = "COS_CONTAINERD"
142+
gvnic = true
143+
workload_metadata_config_mode = "GKE_METADATA"
144+
shielded_instance_config = {
145+
enable_secure_boot = true
146+
}
147+
}
148+
149+
150+
taints = { dedicated = { value = "sig-testing", effect = "NO_SCHEDULE" } }
151+
}
152+
108153
module "prow_build_nodepool_c4_highmem_8_localssd" {
109154
source = "../modules/gke-nodepool"
110155
project_name = module.project.project_id

0 commit comments

Comments
 (0)