diff --git a/internal/ingress/controller/controller.go b/internal/ingress/controller/controller.go index 07b2d2d85..20fb0ddaf 100644 --- a/internal/ingress/controller/controller.go +++ b/internal/ingress/controller/controller.go @@ -130,9 +130,9 @@ func (n *NGINXController) syncIngress(interface{}) error { for _, server := range servers { if !hosts.Has(server.Hostname) { hosts.Insert(server.Hostname) - if server.Alias != "" { - hosts.Insert(server.Alias) - } + } + if server.Alias != "" && !hosts.Has(server.Hostname) { + hosts.Insert(server.Alias) } if !server.SSLPassthrough {