mirror of
https://github.com/khuedoan/homelab.git
synced 2025-02-06 17:18:51 +07:00
Add ingress for Grafana
This commit is contained in:
parent
ebafaf4582
commit
ce6b589914
@ -95,3 +95,24 @@ resource "helm_release" "prometheus" {
|
|||||||
namespace = "monitoring-system"
|
namespace = "monitoring-system"
|
||||||
create_namespace = true
|
create_namespace = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "kubernetes_ingress" "grafana_ingress" {
|
||||||
|
metadata {
|
||||||
|
name = "grafana-ingress"
|
||||||
|
namespace = helm_release.prometheus.namespace
|
||||||
|
}
|
||||||
|
|
||||||
|
spec {
|
||||||
|
rule {
|
||||||
|
host = "grafana.khuedoan.com"
|
||||||
|
http {
|
||||||
|
path {
|
||||||
|
backend {
|
||||||
|
service_name = "kube-prometheus-stack-grafana"
|
||||||
|
service_port = 80
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user