File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,18 @@ resource "google_storage_bucket" "default" {
11
11
uniform_bucket_level_access = true
12
12
}
13
13
14
- resource "google_container_cluster" "primary" {
14
+ /* resource "google_container_cluster" "primary" {
15
15
name = "dsb-devsecops-cluster"
16
16
location = var.region
17
17
18
- # Only one node pool with one node
19
- initial_node_count = 1
20
-
21
18
# Enable GKE features
22
19
remove_default_node_pool = true
23
20
deletion_protection = false
24
21
22
+ cluster_autoscaling {
23
+ enabled = false
24
+ }
25
+
25
26
# Specify network and subnetwork
26
27
network = "default"
27
28
subnetwork = "default"
@@ -31,11 +32,13 @@ resource "google_container_node_pool" "primary_nodes" {
31
32
cluster = google_container_cluster.primary.name
32
33
location = google_container_cluster.primary.location
33
34
node_count = 1 # Single node in the pool - super cheap :)
34
-
35
+ max_pods_per_node = 8
36
+
35
37
node_config {
38
+ preemptible = true
36
39
machine_type = "e2-standard-8"
37
40
oauth_scopes = [
38
41
"https://www.googleapis.com/auth/cloud-platform",
39
42
]
40
43
}
41
- }
44
+ }*/
You can’t perform that action at this time.
0 commit comments