Skip to content

Commit 4c22d88

Browse files
committed
gcp: Add nodepool for tests
Related to: - #2438 Setup a new nodepool with taints so we can schedule specific tests on it for evaluation before we move all the test to a new nodepool. This nodepool will also use COS and cgroups v2. Signed-off-by: Arnaud Meukam <[email protected]>
1 parent 30d6239 commit 4c22d88

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

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

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

108+
module "prow_build_nodepool_c4_highmem_8_localssd" {
109+
source = "../modules/gke-nodepool"
110+
project_name = module.project.project_id
111+
cluster_name = module.prow_build_cluster.cluster.name
112+
location = module.prow_build_cluster.cluster.location
113+
node_locations = [
114+
"us-central1-b",
115+
"us-central1-c",
116+
"us-central1-f",
117+
]
118+
name = "pool6"
119+
initial_count = 1
120+
min_count = 1
121+
max_count = 80
122+
machine_type = "c4-highmem-8"
123+
disk_size_gb = 100
124+
disk_type = "hyperdisk-balanced"
125+
service_account = module.prow_build_cluster.cluster_node_sa.email
126+
taints = [{ key = "dedicated", value = "sig-testing", effect = "NO_SCHEDULE" }]
127+
}
128+
108129
module "prow_build_nodepool_t2a_standard_8" {
109130
source = "../modules/gke-nodepool"
110131
project_name = module.project.project_id

infra/gcp/terraform/modules/gke-nodepool/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ variable "location" {
3131

3232
variable "node_locations" {
3333
description = "The GCP locations (regions or zones) where the node_pool should be located"
34-
type = list
34+
type = list(any)
3535
default = []
3636
}
3737

@@ -63,7 +63,7 @@ variable "machine_type" {
6363
variable "image_type" {
6464
description = "The image_type of this node_pool"
6565
type = string
66-
default = "COS"
66+
default = "COS_CONTAINERD"
6767
}
6868

6969
variable "disk_size_gb" {

0 commit comments

Comments
 (0)