From d3cc0a8894d794aea1412988956be78e09b0744e Mon Sep 17 00:00:00 2001 From: Eugene Apollonsky Date: Fri, 11 Oct 2024 11:58:00 +0300 Subject: [PATCH] Controller: set DefaultBackend service to upstream --- internal/ingress/controller/controller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/ingress/controller/controller.go b/internal/ingress/controller/controller.go index aa8f4c4b92..1ddd79fd14 100644 --- a/internal/ingress/controller/controller.go +++ b/internal/ingress/controller/controller.go @@ -938,6 +938,7 @@ func (n *NGINXController) getBackendServers(ingresses []*ingress.Ingress) ([]*in nb := upstream.DeepCopy() nb.Name = name nb.Endpoints = endps + nb.Service = location.DefaultBackend aUpstreams = append(aUpstreams, nb) location.DefaultBackendUpstreamName = name