You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If using the multi-NIC feature through ipam.spidernet.io/ippools without specifying interface names,
149
+
// and if the IP pool of one NIC changes, only reclaiming the corresponding endpoint IP could cause the IPAM allocation method to lose allocation records.
150
+
// When the interface name is not specified, the allocated NIC name might be "", which cannot be handled properly.
151
+
// If isMultipleNicWithNoName is true, all NIC IP addresses will be reclaimed and reallocated.
152
+
logger.Sugar().Infof("StatefulSet Pod need to release IP, owned pool: %v, expected pools: %v", *ip.IPv4Pool, poolMap[strconv.Itoa(index)])
153
+
releaseEndpointIPsFlag=true
154
+
break
155
+
}
156
+
}
157
+
// All other cases determine here whether an IP address needs to be reclaimed.
Copy file name to clipboardexpand all lines: test/doc/annotation.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -16,4 +16,6 @@
16
16
| A00013 | It's invalid to specify one NIC corresponding IPPool in IPPools annotation with multiple NICs | p2 || done ||
17
17
| A00014 | It's invalid to specify same NIC name for IPPools annotation with multiple NICs | p2 || done ||
18
18
| A00015 | Use wildcard for 'ipam.spidernet.io/ippools' annotation to specify IPPools | p2 || done ||
19
-
| A00016 | In the annotation ipam.spidernet.io/ippools for multi-NICs, when the IP pool for one NIC runs out of IPs, it should not exhaust IPs from other pools. | p2 || done ||
19
+
| A00016 | In the annotation ipam.spidernet.io/ippools for multi-NICs, when the IP pool for one NIC runs out of IPs, it should not exhaust IPs from other pools. | p2 || done ||
20
+
| A00017 | Stateful applications can use multiple NICs via k8s.v1.cni.cncf.io/networks, enabling creation, restart, and IP address changes. | p3 || done ||
21
+
| A00018 | Stateful applications using the annotation ipam.spidernet.io/ippools without specifying a NIC name can still create Pods, restart them, and update their IP addresses. | p3 || done ||
0 commit comments