Skip to content

Commit

Permalink
fix: mongo dns
Browse files Browse the repository at this point in the history
  • Loading branch information
jdongo-aneo committed Oct 24, 2024
1 parent 31da718 commit 19116a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/onpremise/mongodb/locals.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
locals {
mongodb_dns = "${var.name}-headless.${var.namespace}.svc"
mongodb_dns = "${var.name}-headless.${var.namespace}.svc.cluster.local"
mongodb_url = "mongodb+srv://${local.mongodb_dns}/${jsondecode(helm_release.mongodb.metadata[0].values).auth.databases[0]}"
}

0 comments on commit 19116a2

Please sign in to comment.