Skip to content

Commit 1a45399

Browse files
committed
commenting out GKE for now - EXPENSSSSIIIVVEEEE
1 parent 10a2cba commit 1a45399

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

main.tf

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,18 @@ resource "google_storage_bucket" "default" {
1111
uniform_bucket_level_access = true
1212
}
1313

14-
resource "google_container_cluster" "primary" {
14+
/*resource "google_container_cluster" "primary" {
1515
name = "dsb-devsecops-cluster"
1616
location = var.region
1717
18-
# Only one node pool with one node
19-
initial_node_count = 1
20-
2118
# Enable GKE features
2219
remove_default_node_pool = true
2320
deletion_protection = false
2421
22+
cluster_autoscaling {
23+
enabled = false
24+
}
25+
2526
# Specify network and subnetwork
2627
network = "default"
2728
subnetwork = "default"
@@ -31,11 +32,13 @@ resource "google_container_node_pool" "primary_nodes" {
3132
cluster = google_container_cluster.primary.name
3233
location = google_container_cluster.primary.location
3334
node_count = 1 # Single node in the pool - super cheap :)
34-
35+
max_pods_per_node = 8
36+
3537
node_config {
38+
preemptible = true
3639
machine_type = "e2-standard-8"
3740
oauth_scopes = [
3841
"https://www.googleapis.com/auth/cloud-platform",
3942
]
4043
}
41-
}
44+
}*/

0 commit comments

Comments
 (0)