Skip to content

Commit

Permalink
Ignore link local addresses as these give issues during cluster boots…
Browse files Browse the repository at this point in the history
…trapping
  • Loading branch information
marnixbouhuis committed Jan 4, 2025
1 parent 5cb8f03 commit 172f315
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/cloud-controller-manager/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import (
kubevirtv1 "kubevirt.io/api/core/v1"
)

var linkLocalIPv6Range = netip.MustParsePrefix("fe80::/10")

type instanceManager struct {
vmClient ctlkubevirtv1.VirtualMachineClient
vmiClient ctlkubevirtv1.VirtualMachineInstanceClient
Expand Down Expand Up @@ -123,6 +125,11 @@ func getNodeAddresses(node *v1.Node, vmi *kubevirtv1.VirtualMachineInstance) ([]
continue
}

// Skip addresses in link local range, other nodes don't seem to be able to reach this address during cluster bootstrapping.
if ip.Is6() && linkLocalIPv6Range.Contains(ip) {
continue
}

// Determine if the IP should be listed as an internal or external IP.
ipType := v1.NodeExternalIP
for _, internalPrefix := range internalIPRanges {
Expand Down

0 comments on commit 172f315

Please sign in to comment.