Adding kube-prom

This commit is contained in:
IamTheFij 2022-03-04 08:25:42 -08:00
parent 6f9b3b6d37
commit 73d96756bf
1 changed files with 23 additions and 2 deletions

View File

@ -24,6 +24,16 @@ resource "helm_release" "traefik" {
name = "traefik"
repository = "https://helm.traefik.io/traefik"
chart = "traefik"
set {
name = "ingressClass.enabled"
value = true
}
set {
name = "ingressClass.isDefaultClass"
value = true
}
}
resource "kubernetes_manifest" "traefik_dashboard" {
@ -62,7 +72,7 @@ module "whoami" {
module "whoami-ingress" {
source = "./traefik_ingress"
app_name = "whoami"
match_route = "PathPrefix(`/whoami`)"
}
@ -77,7 +87,18 @@ module "whoami2" {
module "whoami2-ingress" {
source = "./traefik_ingress"
app_name = "whoami2"
match_route = "PathPrefix(`/whoami2`)"
}
resource "helm_release" "prom_stack" {
name = "kube-prom-stack"
repository = "https://prometheus-community.github.io/helm-charts"
chart = "kube-prometheus-stack"
set {
name = "alert_manager.enabled"
value = false
}
}