Skip to content

Commit

Permalink
Merge pull request #12 from truefoundry/nap-oauth-add
Browse files Browse the repository at this point in the history
Added NAP and oauth fixes for GKE
  • Loading branch information
dunefro authored Mar 12, 2024
2 parents 2856743 + f306e85 commit ba4edf7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
20 changes: 10 additions & 10 deletions gke.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,53 +21,53 @@ resource "google_container_cluster" "cluster" {
enabled = true
resource_limits {
maximum = var.cluster_nap_node_config.max_cpu
minimum = 2
minimum = 0
resource_type = "cpu"
}
resource_limits {
maximum = var.cluster_nap_node_config.max_memory
minimum = 4
minimum = 0
resource_type = "memory"
}
resource_limits {
maximum = 4
maximum = 256
minimum = 0
resource_type = "nvidia-tesla-k80"
}
resource_limits {
resource_type = "nvidia-tesla-p100"
minimum = 0
maximum = 4
maximum = 256
}
resource_limits {
resource_type = "nvidia-tesla-p4"
minimum = 0
maximum = 4
maximum = 256
}
resource_limits {
resource_type = "nvidia-tesla-v100"
minimum = 0
maximum = 4
maximum = 256
}
resource_limits {
resource_type = "nvidia-tesla-t4"
minimum = 0
maximum = 4
maximum = 256
}
resource_limits {
resource_type = "nvidia-tesla-a100"
minimum = 0
maximum = 4
maximum = 256
}
resource_limits {
resource_type = "nvidia-a100-80gb"
minimum = 0
maximum = 4
maximum = 256
}
resource_limits {
resource_type = "nvidia-l4"
minimum = 0
maximum = 4
maximum = 256
}
auto_provisioning_defaults {
service_account = "default"
Expand Down
7 changes: 5 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ variable "cluster_nap_node_config" {
enable_integrity_monitoring = optional(bool, true)
autoscaling_profile = optional(string, "OPTIMIZE_UTILIZATION")
max_cpu = optional(number, 1024)
max_memory = optional(number, 1024)
max_memory = optional(number, 8172)
auto_repair = optional(bool, true)
auto_upgrade = optional(bool, true)
max_surge = optional(number, 1)
Expand All @@ -74,7 +74,10 @@ variable "oauth_scopes" {
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/devstorage.read_only",
"https://www.googleapis.com/auth/logging.write",
"https://www.googleapis.com/auth/monitoring.write",
"https://www.googleapis.com/auth/monitoring",
"https://www.googleapis.com/auth/service.management.readonly",
"https://www.googleapis.com/auth/servicecontrol",
"https://www.googleapis.com/auth/trace.append"
]
}

Expand Down

0 comments on commit ba4edf7

Please sign in to comment.