Skip to content

Commit b18c5ba

Browse files
authored
Merge pull request #9 from truefoundry/nap-oauth
Updating oauth scopes and the NAP max configs
2 parents 35de748 + 1cda808 commit b18c5ba

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

gke.tf

+10-10
Original file line numberDiff line numberDiff line change
@@ -21,53 +21,53 @@ resource "google_container_cluster" "cluster" {
2121
enabled = true
2222
resource_limits {
2323
maximum = var.cluster_nap_node_config.max_cpu
24-
minimum = 2
24+
minimum = 0
2525
resource_type = "cpu"
2626
}
2727
resource_limits {
2828
maximum = var.cluster_nap_node_config.max_memory
29-
minimum = 4
29+
minimum = 0
3030
resource_type = "memory"
3131
}
3232
resource_limits {
33-
maximum = 4
33+
maximum = 256
3434
minimum = 0
3535
resource_type = "nvidia-tesla-k80"
3636
}
3737
resource_limits {
3838
resource_type = "nvidia-tesla-p100"
3939
minimum = 0
40-
maximum = 4
40+
maximum = 256
4141
}
4242
resource_limits {
4343
resource_type = "nvidia-tesla-p4"
4444
minimum = 0
45-
maximum = 4
45+
maximum = 256
4646
}
4747
resource_limits {
4848
resource_type = "nvidia-tesla-v100"
4949
minimum = 0
50-
maximum = 4
50+
maximum = 256
5151
}
5252
resource_limits {
5353
resource_type = "nvidia-tesla-t4"
5454
minimum = 0
55-
maximum = 4
55+
maximum = 256
5656
}
5757
resource_limits {
5858
resource_type = "nvidia-tesla-a100"
5959
minimum = 0
60-
maximum = 4
60+
maximum = 256
6161
}
6262
resource_limits {
6363
resource_type = "nvidia-a100-80gb"
6464
minimum = 0
65-
maximum = 4
65+
maximum = 256
6666
}
6767
resource_limits {
6868
resource_type = "nvidia-l4"
6969
minimum = 0
70-
maximum = 4
70+
maximum = 256
7171
}
7272
auto_provisioning_defaults {
7373
service_account = "default"

variables.tf

+5-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ variable "cluster_nap_node_config" {
5050
enable_integrity_monitoring = optional(bool, true)
5151
autoscaling_profile = optional(string, "OPTIMIZE_UTILIZATION")
5252
max_cpu = optional(number, 1024)
53-
max_memory = optional(number, 1024)
53+
max_memory = optional(number, 8172)
5454
auto_repair = optional(bool, true)
5555
auto_upgrade = optional(bool, true)
5656
max_surge = optional(number, 1)
@@ -74,7 +74,10 @@ variable "oauth_scopes" {
7474
"https://www.googleapis.com/auth/cloud-platform",
7575
"https://www.googleapis.com/auth/devstorage.read_only",
7676
"https://www.googleapis.com/auth/logging.write",
77-
"https://www.googleapis.com/auth/monitoring.write",
77+
"https://www.googleapis.com/auth/monitoring",
78+
"https://www.googleapis.com/auth/service.management.readonly",
79+
"https://www.googleapis.com/auth/servicecontrol",
80+
"https://www.googleapis.com/auth/trace.append"
7881
]
7982
}
8083

0 commit comments

Comments
 (0)