@@ -41,44 +41,44 @@ resource "google_container_cluster" "primary" {
4141}
4242
4343# Create 2 core node pool with local ssd
44- resource "google_container_node_pool" "aztec_nodes_2core_ssd" {
45- name = " ${ var . cluster_name } -2core-ssd"
46- location = var. zone
47- cluster = var. cluster_name
48- version = var. node_version
44+ # resource "google_container_node_pool" "aztec_nodes_2core_ssd" {
45+ # name = "${var.cluster_name}-2core-ssd"
46+ # location = var.zone
47+ # cluster = var.cluster_name
48+ # version = var.node_version
4949
50- # Enable autoscaling
51- autoscaling {
52- min_node_count = 0
53- max_node_count = 512
54- }
50+ # # Enable autoscaling
51+ # autoscaling {
52+ # min_node_count = 0
53+ # max_node_count = 512
54+ # }
5555
56- # Node configuration
57- node_config {
58- machine_type = " n2d-standard-2"
59- ephemeral_storage_local_ssd_config {
60- local_ssd_count = 1
61- }
56+ # # Node configuration
57+ # node_config {
58+ # machine_type = "n2d-standard-2"
59+ # ephemeral_storage_local_ssd_config {
60+ # local_ssd_count = 1
61+ # }
6262
63- service_account = var. service_account
64- oauth_scopes = [
65- " https://www.googleapis.com/auth/cloud-platform"
66- ]
63+ # service_account = var.service_account
64+ # oauth_scopes = [
65+ # "https://www.googleapis.com/auth/cloud-platform"
66+ # ]
6767
68- labels = {
69- env = " production"
70- local-ssd = " true"
71- node-type = " network"
68+ # labels = {
69+ # env = "production"
70+ # local-ssd = "true"
71+ # node-type = "network"
7272
73- }
74- tags = [" aztec-gke-node" , " aztec" ]
75- }
73+ # }
74+ # tags = ["aztec-gke-node", "aztec"]
75+ # }
7676
77- management {
78- auto_repair = true
79- auto_upgrade = false
80- }
81- }
77+ # management {
78+ # auto_repair = true
79+ # auto_upgrade = false
80+ # }
81+ # }
8282
8383# Create 2 core node pool no ssd
8484resource "google_container_node_pool" "aztec_nodes-2core" {
@@ -105,6 +105,7 @@ resource "google_container_node_pool" "aztec_nodes-2core" {
105105 env = " production"
106106 local-ssd = " false"
107107 node-type = " network"
108+ cores = " 2"
108109 }
109110 tags = [" aztec-gke-node" , " aztec" ]
110111 }
@@ -141,6 +142,7 @@ resource "google_container_node_pool" "aztec_nodes-4core" {
141142 env = " production"
142143 local-ssd = " false"
143144 node-type = " network"
145+ cores = " 4"
144146 }
145147 tags = [" aztec-gke-node" , " aztec" ]
146148 }
@@ -245,49 +247,49 @@ resource "google_container_node_pool" "spot_nodes_8core" {
245247}
246248
247249# Create 2 core spot instance node pool with autoscaling
248- resource "google_container_node_pool" "spot_nodes_2core" {
249- name = " ${ var . cluster_name } -2core-spot"
250- location = var. zone
251- cluster = var. cluster_name
252- version = var. node_version
253- # Enable autoscaling
254- autoscaling {
255- min_node_count = 0
256- max_node_count = 1500
257- }
250+ # resource "google_container_node_pool" "spot_nodes_2core" {
251+ # name = "${var.cluster_name}-2core-spot"
252+ # location = var.zone
253+ # cluster = var.cluster_name
254+ # version = var.node_version
255+ # # Enable autoscaling
256+ # autoscaling {
257+ # min_node_count = 0
258+ # max_node_count = 1500
259+ # }
258260
259- # Node configuration
260- node_config {
261- machine_type = " t2d-standard-2"
262- spot = true
261+ # # Node configuration
262+ # node_config {
263+ # machine_type = "t2d-standard-2"
264+ # spot = true
263265
264- service_account = var. service_account
265- oauth_scopes = [
266- " https://www.googleapis.com/auth/cloud-platform"
267- ]
266+ # service_account = var.service_account
267+ # oauth_scopes = [
268+ # "https://www.googleapis.com/auth/cloud-platform"
269+ # ]
268270
269- labels = {
270- env = " production"
271- pool = " spot"
272- local-ssd = " false"
273- node-type = " network"
274- }
275- tags = [" aztec-gke-node" , " spot" ]
271+ # labels = {
272+ # env = "production"
273+ # pool = "spot"
274+ # local-ssd = "false"
275+ # node-type = "network"
276+ # }
277+ # tags = ["aztec-gke-node", "spot"]
276278
277- # Spot instance termination handler
278- taint {
279- key = " cloud.google.com/gke-spot"
280- value = " true"
281- effect = " NO_SCHEDULE"
282- }
283- }
279+ # # Spot instance termination handler
280+ # taint {
281+ # key = "cloud.google.com/gke-spot"
282+ # value = "true"
283+ # effect = "NO_SCHEDULE"
284+ # }
285+ # }
284286
285- # Management configuration
286- management {
287- auto_repair = true
288- auto_upgrade = false
289- }
290- }
287+ # # Management configuration
288+ # management {
289+ # auto_repair = true
290+ # auto_upgrade = false
291+ # }
292+ # }
291293
292294# Create 8 core high memory (64 GB) node pool with autoscaling, used for metrics
293295resource "google_container_node_pool" "infra_nodes_8core_highmem" {
0 commit comments