Per-instance-size node IP cache (VPC CNI warm IP) with Kyverno
Posted
By Kwangyoung Allen Kim
1 min read
Amazon VPC CNI sets how many IPs each node reserves with environment variables (WARM_IP_TARGET / MINIMUM_IP_TARGET) on the single aws-node DaemonSet, so every node in the cluster gets the same values. I tested the Kyverno workaround from public issue #3630 on an EKS cluster where Karpenter mixes instance sizes. Kyverno set the values for each node’s size when the aws-node Pod was bound to the node, and with only the small nodes lowered to WARM 1 / MIN 3, eight small nodes used 40 subnet IPs instead of 64. The cost was a slower start when many regular Pods start at once. The values were lost when Kyverno was unreachable with failurePolicy Ignore, when the policy had no default, and when an upgrade replaced the whole aws-node manifest.
This post is licensed under CC BY 4.0 by the author.