Skip to content

Commit 25be764

Browse files
committed
Ignore link local addresses as these give issues during cluster bootstrapping
1 parent c67eb03 commit 25be764

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/cloud-controller-manager/instance.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ import (
1919
kubevirtv1 "kubevirt.io/api/core/v1"
2020
)
2121

22+
var linkLocalIPv6Range = netip.MustParsePrefix("fe80::/10")
23+
2224
type instanceManager struct {
2325
vmClient ctlkubevirtv1.VirtualMachineClient
2426
vmiClient ctlkubevirtv1.VirtualMachineInstanceClient
@@ -123,6 +125,11 @@ func getNodeAddresses(node *v1.Node, vmi *kubevirtv1.VirtualMachineInstance) ([]
123125
continue
124126
}
125127

128+
// Skip addresses in link local range, other nodes don't seem to be able to reach this address during cluster bootstrapping.
129+
if ip.Is6() && linkLocalIPv6Range.Contains(ip) {
130+
continue
131+
}
132+
126133
// Determine if the IP should be listed as an internal or external IP.
127134
ipType := v1.NodeExternalIP
128135
for _, internalPrefix := range internalIPRanges {

0 commit comments

Comments
 (0)