diff --git a/k8s.tf b/k8s.tf index a17ba48..8b7b51b 100644 --- a/k8s.tf +++ b/k8s.tf @@ -33,9 +33,11 @@ resource "kubernetes_ingress_v1" "beekeeper" { path { path = var.k8s_path_cleanup_ingress_path backend { - name = kubernetes_service.beekeeper_path_cleanup[0].metadata[0].name - port { + service { + name = kubernetes_service.beekeeper_path_cleanup[0].metadata[0].name + port { number = kubernetes_service.beekeeper_path_cleanup[0].spec[0].port[0].target_port + } } } } @@ -48,9 +50,11 @@ resource "kubernetes_ingress_v1" "beekeeper" { path { path = var.k8s_metadata_cleanup_ingress_path backend { - name = kubernetes_service.beekeeper_metadata_cleanup[0].metadata[0].name - port { + service { + name = kubernetes_service.beekeeper_metadata_cleanup[0].metadata[0].name + port { number = kubernetes_service.beekeeper_metadata_cleanup[0].spec[0].port[0].target_port + } } } } @@ -63,9 +67,11 @@ resource "kubernetes_ingress_v1" "beekeeper" { path { path = var.k8s_scheduler_apiary_ingress_path backend { - name = kubernetes_service.beekeeper_scheduler_apiary[0].metadata[0].name - port { + service { + name = kubernetes_service.beekeeper_scheduler_apiary[0].metadata[0].name + port { number = kubernetes_service.beekeeper_scheduler_apiary[0].spec[0].port[0].target_port + } } } }