diff --git a/pkg/yurttunnel/server/serveraddr/addr.go b/pkg/yurttunnel/server/serveraddr/addr.go index 2b5a0d80282..e25ac65e339 100644 --- a/pkg/yurttunnel/server/serveraddr/addr.go +++ b/pkg/yurttunnel/server/serveraddr/addr.go @@ -234,7 +234,6 @@ func getClusterIPDNSandIP(svc *corev1.Service) ([]string, []net.IP, error) { constants.YurttunnelServerExternalAddrKey, host, constants.YurttunnelServerServiceName) dnsNames = append(dnsNames, host) } - ips = append(ips, ip) } return dnsNames, ips, nil