change proxiers to pass nodePortAddresses

This commit is contained in:
Khaled (Kal) Henidak 2021-09-07 22:13:24 +00:00
parent 784c31cca1
commit acdf50fbed
3 changed files with 3 additions and 3 deletions

View File

@ -280,7 +280,7 @@ func NewProxier(ipt utiliptables.Interface,
masqueradeMark := fmt.Sprintf("%#08x", masqueradeValue)
klog.V(2).InfoS("Using iptables mark for masquerade", "ipFamily", ipt.Protocol(), "mark", masqueradeMark)
serviceHealthServer := healthcheck.NewServiceHealthServer(hostname, recorder)
serviceHealthServer := healthcheck.NewServiceHealthServer(hostname, recorder, nodePortAddresses)
ipFamily := v1.IPv4Protocol
if ipt.IsIPv6() {

View File

@ -441,7 +441,7 @@ func NewProxier(ipt utiliptables.Interface,
scheduler = DefaultScheduler
}
serviceHealthServer := healthcheck.NewServiceHealthServer(hostname, recorder)
serviceHealthServer := healthcheck.NewServiceHealthServer(hostname, recorder, nodePortAddresses)
ipFamilyMap := utilproxy.MapCIDRsByIPFamily(nodePortAddresses)
nodePortAddresses = ipFamilyMap[ipFamily]

View File

@ -642,7 +642,7 @@ func NewProxier(
klog.InfoS("clusterCIDR not specified, unable to distinguish between internal and external traffic")
}
serviceHealthServer := healthcheck.NewServiceHealthServer(hostname, recorder)
serviceHealthServer := healthcheck.NewServiceHealthServer(hostname, recorder, []string{} /* windows listen to all node addresses */)
hns, supportedFeatures := newHostNetworkService()
hnsNetworkName, err := getNetworkName(config.NetworkName)
if err != nil {