From f8f0a15db0c41cc2e2dc820bbd7e484ed40c5fe9 Mon Sep 17 00:00:00 2001 From: Justin Brooks Date: Wed, 15 Nov 2023 13:49:39 -0500 Subject: [PATCH] operator module --- main.tf | 118 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 59 insertions(+), 59 deletions(-) diff --git a/main.tf b/main.tf index 4cb49865..a107d411 100644 --- a/main.tf +++ b/main.tf @@ -183,62 +183,62 @@ module "redis" { kms_key_arn = local.kms_key_arn } -# Comming soon! -# module "wandb" { -# source = "wandb/wandb/helm" -# version = "1.2.0" - -# depends_on = [ -# module.database, -# module.app_eks, -# module.redis, -# ] - -# operator_chart_version = "1.1.0" -# controller_image_tag = "1.10.1" - -# spec = { -# values = { -# global = { -# host = local.url -# license = var.license - -# bucket = { -# provider = "s3" -# name = local.bucket_name -# region = data.aws_s3_bucket.file_storage.region -# kmsKey = local.kms_key_arn -# } - -# mysql = { -# host = module.database.endpoint -# password = module.database.password -# username = module.database.username -# database = module.database.database_name -# port = module.database.port -# } - -# redis = { -# host = module.redis.0.host -# port = "${module.redis.0.port}?tls=true" -# } -# } - -# ingress = { -# class = "alb" - -# annotations = { -# "alb.ingress.kubernetes.io/load-balancer-name" = "${var.namespace}-alb-k8s" -# "alb.ingress.kubernetes.io/inbound-cidrs" = "0.0.0.0/0" -# "alb.ingress.kubernetes.io/scheme" = "internet-facing" -# "alb.ingress.kubernetes.io/target-type" = "ip" -# "alb.ingress.kubernetes.io/listen-ports" = "[{\\\"HTTPS\\\": 443}]" -# "alb.ingress.kubernetes.io/certificate-arn" = local.acm_certificate_arn -# } -# } - -# mysql = { install = false } -# redis = { install = false } -# } -# } -# } +Comming soon! +module "wandb" { + source = "wandb/wandb/helm" + version = "1.2.0" + + depends_on = [ + module.database, + module.app_eks, + module.redis, + ] + + operator_chart_version = "1.1.0" + controller_image_tag = "1.10.1" + + spec = { + values = { + global = { + host = local.url + license = var.license + + bucket = { + provider = "s3" + name = local.bucket_name + region = data.aws_s3_bucket.file_storage.region + kmsKey = local.kms_key_arn + } + + mysql = { + host = module.database.endpoint + password = module.database.password + username = module.database.username + database = module.database.database_name + port = module.database.port + } + + redis = { + host = module.redis.0.host + port = "${module.redis.0.port}?tls=true" + } + } + + ingress = { + class = "alb" + + annotations = { + "alb.ingress.kubernetes.io/load-balancer-name" = "${var.namespace}-alb-k8s" + "alb.ingress.kubernetes.io/inbound-cidrs" = "0.0.0.0/0" + "alb.ingress.kubernetes.io/scheme" = "internet-facing" + "alb.ingress.kubernetes.io/target-type" = "ip" + "alb.ingress.kubernetes.io/listen-ports" = "[{\\\"HTTPS\\\": 443}]" + "alb.ingress.kubernetes.io/certificate-arn" = local.acm_certificate_arn + } + } + + mysql = { install = false } + redis = { install = false } + } + } +}