Skip to content

Commit

Permalink
helm values for gcp registry
Browse files Browse the repository at this point in the history
  • Loading branch information
Telemaco019 committed Sep 27, 2024
1 parent 01441ae commit 07b35d0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
14 changes: 14 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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(
Expand Down
5 changes: 4 additions & 1 deletion templates/helm-values.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/dev-provisioning/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tests/dev-provisioning/terraform.auto.tfvars
Original file line number Diff line number Diff line change
@@ -1 +1 @@
region = "europe-west4"
region = "us-central1"

0 comments on commit 07b35d0

Please sign in to comment.