Skip to content

Commit 1e3846e

Browse files
committed
fix: Use operator in public dns example
1 parent 7e154fc commit 1e3846e

File tree

3 files changed

+6
-30
lines changed

3 files changed

+6
-30
lines changed

examples/public-dns-external/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ namespace = "wandb"
3131
subdomain = "test"
3232
domain_name = "wandb.io"
3333
license = "<license key>"
34+
zone_id = "<route 53 zone ID>"
3435
```
3536

3637
This will deploy an instance at `test.wandb.io`.

examples/public-dns-external/main.tf

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ module "wandb_infra" {
2020

2121
deletion_protection = false
2222

23+
enable_dummy_dns = true
24+
enable_operator_alb = true
25+
2326
database_instance_class = var.database_instance_class
2427
database_engine_version = var.database_engine_version
2528
database_snapshot_identifier = var.database_snapshot_identifier
@@ -28,7 +31,7 @@ module "wandb_infra" {
2831
allowed_inbound_cidr = var.allowed_inbound_cidr
2932
allowed_inbound_ipv6_cidr = ["::/0"]
3033

31-
eks_cluster_version = "1.25"
34+
eks_cluster_version = "1.26"
3235
kubernetes_public_access = true
3336
kubernetes_public_access_cidrs = ["0.0.0.0/0"]
3437

@@ -83,34 +86,6 @@ provider "helm" {
8386
}
8487
}
8588

86-
module "wandb_app" {
87-
source = "wandb/wandb/kubernetes"
88-
version = "1.12.0"
89-
90-
license = var.wandb_license
91-
92-
host = module.wandb_infra.url
93-
bucket = "s3://${module.wandb_infra.bucket_name}"
94-
bucket_aws_region = module.wandb_infra.bucket_region
95-
bucket_queue = "internal://"
96-
bucket_kms_key_arn = module.wandb_infra.kms_key_arn
97-
database_connection_string = "mysql://${module.wandb_infra.database_connection_string}"
98-
redis_connection_string = "redis://${module.wandb_infra.elasticache_connection_string}?tls=true&ttlInSeconds=604800"
99-
100-
wandb_image = var.wandb_image
101-
wandb_version = var.wandb_version
102-
103-
service_port = module.wandb_infra.internal_app_port
104-
105-
# If we dont wait, tf will start trying to deploy while the work group is
106-
# still spinning up
107-
depends_on = [module.wandb_infra]
108-
109-
other_wandb_env = merge({
110-
"GORILLA_CUSTOMER_SECRET_STORE_SOURCE" = "aws-secretmanager://${var.namespace}?namespace=${var.namespace}"
111-
}, var.other_wandb_env)
112-
}
113-
11489
output "bucket_name" {
11590
value = module.wandb_infra.bucket_name
11691
}

examples/public-dns-external/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ variable "wandb_license" {
3333
variable "database_engine_version" {
3434
description = "Version for MySQL Auora"
3535
type = string
36-
default = "8.0.mysql_aurora.3.02.2"
36+
default = "8.0.mysql_aurora.3.03.2"
3737
}
3838

3939
variable "database_instance_class" {

0 commit comments

Comments
 (0)