Skip to content

Commit

Permalink
Controller: set DefaultBackend service to upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
chessman committed Oct 11, 2024
1 parent 05eda3d commit d3cc0a8
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 d3cc0a8

Please sign in to comment.