Skip to content

Commit

Permalink
Controller: set DefaultBackend service to upstream
Browse files Browse the repository at this point in the history
Fixes: #12158
  • Loading branch information
chessman committed Oct 11, 2024
1 parent 05eda3d commit 742a60f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/ingress/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 742a60f

Please sign in to comment.