diff --git a/main.tf b/main.tf index e7238e5..4aed3bd 100644 --- a/main.tf +++ b/main.tf @@ -234,6 +234,17 @@ resource "google_container_cluster" "main" { enabled = false } + node_config { + # Config of the default node pool that gets deleted after provisioning the GKE cluster. + machine_type = "n1-standard-1" + } + + node_locations = [ + # Limit to a single location the default node pool that gets deleted after provisioning the GKE cluster. + data.google_compute_zones.available.names[0], + ] + + min_master_version = data.google_container_engine_versions.main.latest_master_version deletion_protection = var.gke_delete_protection @@ -416,6 +427,9 @@ locals { analytics_postgres_db_name = google_sql_database.analytics.name auth_postgres_server_url = google_sql_database_instance.main.private_ip_address auth_postgres_db_name = google_sql_database.auth.name + + gcp_bucket_name = google_storage_bucket.main.name + gcp_project_name = data.google_project.current.project_id }, ) secret_provider_class = templatefile( diff --git a/templates/helm-values.tpl.yaml b/templates/helm-values.tpl.yaml index d7fb587..9fa34dd 100644 --- a/templates/helm-values.tpl.yaml +++ b/templates/helm-values.tpl.yaml @@ -80,7 +80,10 @@ azureml: enabled: false aiModels: - registry: "" # TODO: support GCP Bucket + registry: "gcp_bucket" + gcp: + bucketName: ${gcp_bucket_name} + projectName: ${gcp_project_name} sync: enabled: true diff --git a/tests/dev-provisioning/main.tf b/tests/dev-provisioning/main.tf index 6e3a1a2..07e1052 100644 --- a/tests/dev-provisioning/main.tf +++ b/tests/dev-provisioning/main.tf @@ -45,7 +45,7 @@ module "platform" { openai_endpoint = "https://api.openai.com" openai_gpt4_deployment_name = "gpt-4" - platform_domain = "nebuly-platform.testing" + platform_domain = "platform.gcp.testing.nebuly.com" nebuly_credentials = { client_id = "my-client-id" client_secret = "my-client-secret" diff --git a/tests/dev-provisioning/terraform.auto.tfvars b/tests/dev-provisioning/terraform.auto.tfvars index 910af2b..656a90e 100644 --- a/tests/dev-provisioning/terraform.auto.tfvars +++ b/tests/dev-provisioning/terraform.auto.tfvars @@ -1 +1 @@ -region = "europe-west4" +region = "us-central1"