aws / amazon-vpc-cni-k8s

Networking plugin repository for pod networking in Kubernetes using Elastic Network Interfaces on AWS
Apache License 2.0
2.28k stars 743 forks source link

Daemonset pods still get IPs from primary subnets #3110

Open neilharris123 opened 1 week ago

neilharris123 commented 1 week ago

I enabled custom networking in my cluster so that my pods would receive IP addresses from some secondary subnets I added from a secondary VPC CIDR. This worked for most pods (adn deployment and statefulsets), however, I noticed that daemonset pods were still assigned IP addresses from the primary subnets where the node gets its IP address from.

I recycled all nodes, and this is still the case.

Is this expected behaviour, or have I missed something?

Environment:

orsenthil commented 2 days ago

Do you see any errors in plugin.log or ipamd.log ?

I noticed that daemonset pods were still assigned IP addresses from the primary subnets where the node gets its IP address from.

Are they hostNetworking pods by any chance?

Custom networking ip assignment should not depend on the kind of the resource (Deployment or Daemonset).