khuedoan-homelab/platform/ingress.tf
2020-11-24 01:31:57 +07:00

63 lines
1.1 KiB
HCL

resource "kubernetes_ingress" "grafana_ingress" {
metadata {
name = "grafana-ingress"
namespace = helm_release.prometheus.namespace
}
spec {
rule {
host = "grafana.${local.domain}"
http {
path {
backend {
service_name = "kube-prometheus-stack-grafana"
service_port = 80
}
}
}
}
}
}
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
}
}
}
}
}
}
resource "kubernetes_ingress" "vault_ingress" {
metadata {
name = "vault-ingress"
namespace = helm_release.vault.namespace
}
spec {
rule {
host = "vault.${local.domain}"
http {
path {
backend {
service_name = "vault"
service_port = 8200
}
}
}
}
}
}