lyft / cni-ipvlan-vpc-k8s

AWS VPC Kubernetes CNI driver using IPvlan
Apache License 2.0
360 stars 58 forks source link

GC registry for deferred IP removal #25

Closed theatrus closed 6 years ago

theatrus commented 6 years ago

This patch adds mechanisms to record IPs returned and released when using the skipDeallocate mode of the IPAM plugin. A systemd service or cron job can be used with the -tool to allow delayed removal of these IPs from the system if they are not reused within a certain period of time.

This is extremely helpful in cases where a large number of pods are created and removed in the system to avoid running into AWS rate limits.