Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daemonset pods still get IPs from primary subnets #3110

Open
neilharris123 opened this issue Nov 11, 2024 · 1 comment
Open

Daemonset pods still get IPs from primary subnets #3110

neilharris123 opened this issue Nov 11, 2024 · 1 comment

Comments

@neilharris123
Copy link

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:

  • Kubernetes version: 1.29
  • CNI Version: v1.18.5-eksbuild.1
@orsenthil
Copy link
Member

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants