Skip to content

Commit

Permalink
gke location var support
Browse files Browse the repository at this point in the history
  • Loading branch information
umeshkumhar committed Mar 1, 2024
1 parent 26e6d07 commit 13a0e3a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion applications/rag/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module "infra" {

project_id = var.project_id
cluster_name = var.cluster_name
cluster_region = var.cluster_location
cluster_location = var.cluster_location
autopilot_cluster = var.autopilot_cluster
private_cluster = var.private_cluster
create_network = false
Expand Down
2 changes: 1 addition & 1 deletion applications/rag/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
- name: add_auth
description: Enable iap authentication on jupyterhub
varType: bool
defaultValue: true
defaultValue: false
- name: autopilot_cluster
varType: bool
defaultValue: false
Expand Down
7 changes: 2 additions & 5 deletions applications/rag/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ variable "cpu_pools" {
type = list(object({
name = string
machine_type = string
node_locations = string
node_locations = optional(string, "")
autoscaling = optional(bool, false)
min_count = optional(number, 1)
max_count = optional(number, 3)
Expand All @@ -289,7 +289,6 @@ variable "cpu_pools" {
default = [{
name = "cpu-pool"
machine_type = "n1-standard-16"
node_locations = "us-central1-b,us-central1-c"
autoscaling = true
min_count = 1
max_count = 3
Expand All @@ -302,7 +301,7 @@ variable "gpu_pools" {
type = list(object({
name = string
machine_type = string
node_locations = string
node_locations = optional(string, "")
autoscaling = optional(bool, false)
min_count = optional(number, 1)
max_count = optional(number, 3)
Expand All @@ -326,7 +325,6 @@ variable "gpu_pools" {
default = [{
name = "gpu-pool"
machine_type = "n1-standard-16"
node_locations = "us-central1-b,us-central1-c"
autoscaling = true
min_count = 1
max_count = 3
Expand All @@ -339,7 +337,6 @@ variable "gpu_pools" {
{
name = "gpu-pool-l4"
machine_type = "g2-standard-24"
node_locations = "us-central1-a,us-central1-b"
autoscaling = true
min_count = 1
max_count = 3
Expand Down

0 comments on commit 13a0e3a

Please sign in to comment.