mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
change proxiers to pass nodePortAddresses
This commit is contained in:
parent
784c31cca1
commit
acdf50fbed
@ -280,7 +280,7 @@ func NewProxier(ipt utiliptables.Interface,
|
|||||||
masqueradeMark := fmt.Sprintf("%#08x", masqueradeValue)
|
masqueradeMark := fmt.Sprintf("%#08x", masqueradeValue)
|
||||||
klog.V(2).InfoS("Using iptables mark for masquerade", "ipFamily", ipt.Protocol(), "mark", masqueradeMark)
|
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
|
ipFamily := v1.IPv4Protocol
|
||||||
if ipt.IsIPv6() {
|
if ipt.IsIPv6() {
|
||||||
|
@ -441,7 +441,7 @@ func NewProxier(ipt utiliptables.Interface,
|
|||||||
scheduler = DefaultScheduler
|
scheduler = DefaultScheduler
|
||||||
}
|
}
|
||||||
|
|
||||||
serviceHealthServer := healthcheck.NewServiceHealthServer(hostname, recorder)
|
serviceHealthServer := healthcheck.NewServiceHealthServer(hostname, recorder, nodePortAddresses)
|
||||||
|
|
||||||
ipFamilyMap := utilproxy.MapCIDRsByIPFamily(nodePortAddresses)
|
ipFamilyMap := utilproxy.MapCIDRsByIPFamily(nodePortAddresses)
|
||||||
nodePortAddresses = ipFamilyMap[ipFamily]
|
nodePortAddresses = ipFamilyMap[ipFamily]
|
||||||
|
@ -642,7 +642,7 @@ func NewProxier(
|
|||||||
klog.InfoS("clusterCIDR not specified, unable to distinguish between internal and external traffic")
|
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()
|
hns, supportedFeatures := newHostNetworkService()
|
||||||
hnsNetworkName, err := getNetworkName(config.NetworkName)
|
hnsNetworkName, err := getNetworkName(config.NetworkName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user