Skip to content

Commit d3cc0a8

Browse files
committed
Controller: set DefaultBackend service to upstream
1 parent 05eda3d commit d3cc0a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/ingress/controller/controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -938,6 +938,7 @@ func (n *NGINXController) getBackendServers(ingresses []*ingress.Ingress) ([]*in
938938
nb := upstream.DeepCopy()
939939
nb.Name = name
940940
nb.Endpoints = endps
941+
nb.Service = location.DefaultBackend
941942
aUpstreams = append(aUpstreams, nb)
942943
location.DefaultBackendUpstreamName = name
943944

0 commit comments

Comments
 (0)