Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
saliceti committed Mar 25, 2024
1 parent 6814be3 commit d561dfc
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions cluster/terraform_kubernetes/prometheus.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
resource "kubernetes_cluster_role" "prometheus" {

metadata {
name = "prometheus"
}
Expand All @@ -23,7 +22,6 @@ resource "kubernetes_cluster_role" "prometheus" {
}

resource "kubernetes_cluster_role_binding" "prometheus" {

metadata {
name = "prometheus"
}
Expand All @@ -39,26 +37,21 @@ resource "kubernetes_cluster_role_binding" "prometheus" {
name = "default"
namespace = "monitoring"
}

}

resource "kubernetes_config_map" "prometheus" {

metadata {
name = "prometheus-server-conf"
namespace = kubernetes_namespace.default_list["monitoring"].metadata[0].name
}

data = {

"prometheus.yml" = "${file("${path.module}/config/prometheus/${var.config}.prometheus.yml")}"
"app.alert.rules" = local.app_alert_rules
}

}

resource "kubernetes_deployment" "prometheus" {

metadata {
name = "prometheus"
namespace = "monitoring"
Expand Down Expand Up @@ -208,14 +201,12 @@ resource "kubernetes_deployment" "prometheus" {
secret_name = kubernetes_secret.thanos.metadata[0].name
}
}

}
}
}
}

resource "kubernetes_service" "prometheus" {

metadata {
name = "prometheus"
namespace = "monitoring"
Expand Down

0 comments on commit d561dfc

Please sign in to comment.