From 67debbdb1c5333ea03980b14d165a33e27e5656b Mon Sep 17 00:00:00 2001 From: shockrah Date: Mon, 24 Jun 2024 23:46:53 -0700 Subject: [PATCH] INgress controller --- infra/vultr-kubernetes/k8s/ingress.tf | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 infra/vultr-kubernetes/k8s/ingress.tf diff --git a/infra/vultr-kubernetes/k8s/ingress.tf b/infra/vultr-kubernetes/k8s/ingress.tf new file mode 100644 index 0000000..36eccb9 --- /dev/null +++ b/infra/vultr-kubernetes/k8s/ingress.tf @@ -0,0 +1,28 @@ +resource kubernetes_ingress_v1 athens { + metadata { + name = var.shockrahxyz.name + labels = { + app = var.shockrahxyz.name + } + } + spec { + rule { + http { + path { + backend { + service { + name = var.shockrahxyz.name + port { + number = 80 + } + } + } + path = "/" + } + } + } + } +} + + +