2020-11-23 08:39:24 +07:00
|
|
|
resource "kubernetes_ingress" "grafana_ingress" {
|
|
|
|
metadata {
|
|
|
|
name = "grafana-ingress"
|
|
|
|
namespace = helm_release.prometheus.namespace
|
|
|
|
}
|
|
|
|
|
|
|
|
spec {
|
|
|
|
rule {
|
2020-11-24 00:55:45 +07:00
|
|
|
host = "grafana.${local.domain}"
|
2020-11-23 08:39:24 +07:00
|
|
|
http {
|
|
|
|
path {
|
|
|
|
backend {
|
|
|
|
service_name = "kube-prometheus-stack-grafana"
|
|
|
|
service_port = 80
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-24 00:55:45 +07:00
|
|
|
resource "kubernetes_ingress" "longhorn" {
|
|
|
|
metadata {
|
|
|
|
name = "longhorn-ingress"
|
|
|
|
namespace = helm_release.longhorn.namespace
|
|
|
|
}
|
|
|
|
|
|
|
|
spec {
|
|
|
|
rule {
|
|
|
|
host = "longhorn.${local.domain}"
|
|
|
|
http {
|
|
|
|
path {
|
|
|
|
backend {
|
|
|
|
service_name = "longhorn-frontend"
|
|
|
|
service_port = 80
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-23 08:39:24 +07:00
|
|
|
resource "kubernetes_ingress" "vault_ingress" {
|
|
|
|
metadata {
|
|
|
|
name = "vault-ingress"
|
|
|
|
namespace = helm_release.vault.namespace
|
|
|
|
}
|
|
|
|
|
|
|
|
spec {
|
|
|
|
rule {
|
2020-11-24 00:55:45 +07:00
|
|
|
host = "vault.${local.domain}"
|
2020-11-23 08:39:24 +07:00
|
|
|
http {
|
|
|
|
path {
|
|
|
|
backend {
|
|
|
|
service_name = "vault"
|
|
|
|
service_port = 8200
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|