Updating health ingress resource with better naming/referecing
Some checks failed
Ansible Linting / ansible-lint (push) Failing after 4s
Secops Linting and Safety Checks / checkov-scan-s3 (push) Failing after 15s

This commit is contained in:
shockrah 2025-09-28 15:56:24 -07:00
parent affa03bed5
commit cddf67de2f

View File

@ -1,6 +1,6 @@
resource kubernetes_ingress_v1 playground_ingress { resource kubernetes_ingress_v1 health {
metadata { metadata {
name = "playground-ingress" name = "health-ingress"
namespace = var.playground.namespace namespace = var.playground.namespace
} }
spec { spec {
@ -11,9 +11,9 @@ resource kubernetes_ingress_v1 playground_ingress {
path = "/" path = "/"
backend { backend {
service { service {
name = "health" name = kubernetes_service.health.metadata[0].name
port { port {
number = 80 number = kubernetes_service.health.spec[0].port[0].port
} }
} }
} }
@ -22,3 +22,4 @@ resource kubernetes_ingress_v1 playground_ingress {
} }
} }
} }