Skip to content

Commit

Permalink
Move to telemetry namespace (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgin314 committed Feb 27, 2025
1 parent 8af8213 commit 14f86e0
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
locals {
gateway_internal_hostname = format("loki-gateway.%v.svc.cluster.local", kubernetes_namespace.ns.metadata[0].name)
gateway_internal_hostname = format("loki-gateway.%v.svc.cluster.local", var.namespace)
gateway_internal_port_number = "80"
gateway_internal_url = format("http://%v:%v/", local.gateway_internal_hostname, local.gateway_internal_port_number)
}

resource "kubernetes_namespace" "ns" {
metadata {
name = var.namespace
labels = {
istio-injection = "enabled"
}
}
}

locals {
tags = merge({
"boc:eks-cluster-name" = var.cluster_name
Expand Down Expand Up @@ -56,7 +47,7 @@ resource "helm_release" "loki" {
chart = "loki"
version = var.loki_chart_version
name = "loki"
namespace = kubernetes_namespace.ns.metadata[0].name
namespace = var.namespace
repository = "https://grafana.github.io/helm-charts"
wait = true

Expand Down

0 comments on commit 14f86e0

Please sign in to comment.