From d992556032eae1265d192883a27794c140c1d7d1 Mon Sep 17 00:00:00 2001 From: shockrah Date: Wed, 17 Sep 2025 23:32:50 -0700 Subject: [PATCH] Basic sanity service now working under public DNS --- infra/dns/shockrah-xyz.tf | 1 + infra/vultr-kubernetes/ingress.tf | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/infra/dns/shockrah-xyz.tf b/infra/dns/shockrah-xyz.tf index 23a8be9..1e1a2f4 100644 --- a/infra/dns/shockrah-xyz.tf +++ b/infra/dns/shockrah-xyz.tf @@ -38,6 +38,7 @@ locals { { name = "resume.shockrah.xyz", records = [ var.vultr_host ] }, { name = "git.shockrah.xyz", records = [ var.vultr_host ] }, { name = "example.shockrah.xyz", records = [ var.vke_lb ] }, + { name = "sanity.shockrah.xyz", records = [ var.vke_lb ] }, ] } diff --git a/infra/vultr-kubernetes/ingress.tf b/infra/vultr-kubernetes/ingress.tf index 4b1d9c6..1eea809 100644 --- a/infra/vultr-kubernetes/ingress.tf +++ b/infra/vultr-kubernetes/ingress.tf @@ -1,11 +1,24 @@ -resource kubernetes_ingress playground_ingress { +resource kubernetes_ingress_v1 playground_ingress { metadata { name = "playground-ingress" + namespace = var.playground.namespace } spec { ingress_class_name = "nginx" rule { - host = var.playground.health.dns + http { + path { + path = "/" + backend { + service { + name = "health" + port { + number = 80 + } + } + } + } + } } } } \ No newline at end of file