Skip to content

Commit

Permalink
enable ipv6 egress on cluster with nodes ipv4 and nodes ipv6 (#2754)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeylanzman authored Jan 25, 2024
1 parent b0ff9b9 commit 8f56a1a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/aws-vpc-cni/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,10 @@ func generateJSON(jsonFile string, outFile string, getPrimaryIP func(ipv4 bool)
if egressEnabled {
nodeIP, err = getPrimaryIP(false)
if err != nil {
log.Errorf("To support IPv6 egress, node primary ENI must have a global IPv6 address, error: %v", err)
return err
// When ENABLE_V6_EGRESS is set, but the node is lacking an IPv6 address, log a warning and disable the egress-v6-cni plugin.
// This allows IPv4-only nodes to function while still alerting the customer to the possibility of a misconfiguration.
log.Warnf("To support IPv6 egress, node primary ENI must have a global IPv6 address, error: %v", err)
egressEnabled = false
}
}
}
Expand Down

0 comments on commit 8f56a1a

Please sign in to comment.