diff --git a/README.md b/README.md
index 77b4b40..3d85b17 100644
--- a/README.md
+++ b/README.md
@@ -40,8 +40,8 @@ Developer NOTE: We should automate this configuration.
| Name | Source | Version |
|------|--------|---------|
-| [images](#module\_images) | git::https://github.e.it.census.gov/terraform-modules/aws-ecr-copy-images.git | tf-upgrade |
-| [tempo-irsa-role](#module\_tempo-irsa-role) | git::https://github.e.it.census.gov/SCT-Engineering/tfmod-custom-iam-role-for-service-account-eks.git | main |
+| [images](#module\_images) | git::https://github.e.it.census.gov/terraform-modules/aws-ecr-copy-images.git/ | tf-upgrade |
+| [tempo-irsa-role](#module\_tempo-irsa-role) | git::https://github.e.it.census.gov/SCT-Engineering/tfmod-custom-iam-role-for-service-account-eks.git/ | 1.0.1 |
| [tempo\_s3](#module\_tempo\_s3) | git::https://github.e.it.census.gov/terraform-modules/aws-s3.git//standard | tf-upgrade |
## Resources
@@ -66,7 +66,7 @@ Developer NOTE: We should automate this configuration.
| [namespace](#input\_namespace) | The namespace into which tempo will be deployed | `string` | `"tempo"` | no |
| [oidc\_provider\_arn](#input\_oidc\_provider\_arn) | The ARN in the EKS cluster for the OpenID Connect identity provider. | `string` | n/a | yes |
| [profile](#input\_profile) | AWS config profile used to upload images into ECR | `string` | `""` | no |
-| [prometheus\_namespace](#input\_prometheus\_namespace) | Namespace where Prometheus is installed. | `string` | `"prometheus"` | no |
+| [prometheus\_namespace](#input\_prometheus\_namespace) | Namespace where Prometheus is installed. | `string` | `"telemetry"` | no |
| [prometheus\_port](#input\_prometheus\_port) | Port number of Prometheus service, mostly either 80 or 9090 | `string` | `"80"` | no |
| [prometheus\_svc](#input\_prometheus\_svc) | Prometheus service name. | `string` | `"prometheus-server"` | no |
| [region](#input\_region) | The region holding these resources (for the s3 bucket.) | `string` | n/a | yes |
diff --git a/main.tf b/main.tf
index 9716cee..b821ce8 100644
--- a/main.tf
+++ b/main.tf
@@ -14,8 +14,7 @@ locals {
# IRSA Role for Tempo
################################################################################
module "tempo-irsa-role" {
- # tflint-ignore: terraform_module_pinned_source
- source = "git::https://github.e.it.census.gov/SCT-Engineering/tfmod-custom-iam-role-for-service-account-eks.git?ref=main"
+ source = "git::https://github.e.it.census.gov/SCT-Engineering/tfmod-custom-iam-role-for-service-account-eks.git/?ref=1.0.1"
role_name = format("%v%v-%v", local.prefixes["eks-role"], var.cluster_name, "tempo")
attach_s3_bucket_owner_policy = true
@@ -42,6 +41,8 @@ module "tempo-irsa-role" {
# Helm Chart for Tempo
################################################################################
resource "helm_release" "tempo" {
+ depends_on = [module.tempo-irsa-role, module.images, module.tempo_s3]
+ atomic = true
chart = "tempo"
version = var.tempo_chart_version
name = "tempo"
@@ -58,11 +59,12 @@ resource "helm_release" "tempo" {
value = "1"
},
{
- name = "tempo.repository"
- value = format("%v/%v",
- module.images.images[local.tempo_key].dest_registry,
- module.images.images[local.tempo_key].dest_repository
- )
+ name = "tempo.registry"
+ value = module.images.images[local.tempo_key].dest_registry
+ },
+ {
+ name = "tempo.repository"
+ value = module.images.images[local.tempo_key].dest_repository
},
{
name = "tempo.tag"
@@ -82,7 +84,7 @@ resource "helm_release" "tempo" {
},
{
name = "tempo.metricsGenerator.remoteWriteUrl"
- value = "http://${var.prometheus_svc}.${var.prometheus_namespace}:${var.prometheus_port}/api/v1/write"
+ value = "http://${var.prometheus_svc}.${var.prometheus_namespace}.svc.cluster.local:${var.prometheus_port}/api/v1/write"
},
{
name = "serviceAccount.annotations.eks\\.amazonaws\\.com/role-arn"
diff --git a/tempo_values.yaml b/tempo_values.yaml
index 5b2e47b..3494f11 100644
--- a/tempo_values.yaml
+++ b/tempo_values.yaml
@@ -16,7 +16,7 @@ tempo:
value: "9411"
metricsGenerator:
enabled: true
- remoteWriteUrl: http://prometheus-server.prometheus:80/api/v1/write
+ remoteWriteUrl: "http://prometheus-server.telemetry.svc.cluster.local:80/api/v1/write"
reportingEnabled: false
serviceAccount:
diff --git a/variables.tf b/variables.tf
index dc41667..4b6197d 100644
--- a/variables.tf
+++ b/variables.tf
@@ -45,7 +45,7 @@ variable "profile" {
variable "prometheus_namespace" {
description = "Namespace where Prometheus is installed."
type = string
- default = "prometheus"
+ default = "telemetry"
}
variable "prometheus_port" {