otterize / network-mapper

Map Kubernetes traffic: in-cluster, to the Internet, and to AWS IAM and export as text, intents, or an image
Apache License 2.0
612 stars 23 forks source link

Treat pod not found as external source traffic, only use node podCIDRs if possible. #210

Closed orishoshan closed 5 months ago

orishoshan commented 5 months ago

Description

Prior to this PR, node PodCIDRs were always used to determine if an IP is considered external. However, sometimes the node CIDR can be unpopulated (or not populated yet?). Now we will treat those cases as if the IP is external, only checking the pod CIDRs if available, otherwise assuming that any pod not found means external traffic.