amazon-vpc-cni-k8s icon indicating copy to clipboard operation
amazon-vpc-cni-k8s copied to clipboard

How to set separate outgoing (and possibly incoming) IP address for pods?

Open exander77 opened this issue 2 years ago • 4 comments

I want some of the pods to use different outgoing IP. I have set up separate ElasticIP and Gateway, how can I set pods to use it? Some ability to set route table for pod/namespace?

exander77 avatar Sep 06 '22 22:09 exander77

@exander77 - If I understand correctly you want to attach your own ENIs/secondary IPs and pods should pick them? If so you can set this env variable - https://github.com/aws/amazon-vpc-cni-k8s#disable_network_resource_provisioning-v191. Then when ENIs and IPs are attached, those IPs will be picked from IPAMD and used for pod IPs and route tables will be programmed.

jayanthvn avatar Sep 13 '22 16:09 jayanthvn

@exander77 - If I understand correctly you want to attach your own ENIs/secondary IPs and pods should pick them? If so you can set this env variable - https://github.com/aws/amazon-vpc-cni-k8s#disable_network_resource_provisioning-v191. Then when ENIs and IPs are attached, those IPs will be picked from IPAMD and used for pod IPs and route tables will be programmed.

I want my pod (several pods) to get separate outgoing IP, i.e. route the traffic through a different interface. I am unsure how could I use that variable? I would assume I somehow attach my ElasticIP to the cluster and to the pod.

exander77 avatar Sep 13 '22 18:09 exander77

We would need more insights on the use case. Are you available on k8s slack? We can connect and setup a call.

jayanthvn avatar Sep 20 '22 21:09 jayanthvn

We would need more insights on the use case. Are you available on k8s slack? We can connect and setup a call.

If it is this: https://communityinviter.com/apps/kubernetes Then I just joined.

Basically, I need separate outgoing (and possibly incoming) IP for traffic of a pod (pods).

exander77 avatar Sep 21 '22 09:09 exander77

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days

github-actions[bot] avatar Nov 21 '22 00:11 github-actions[bot]

/not stale

@exander77 - Yes thats the right channel. We can sync on this.

jayanthvn avatar Nov 21 '22 15:11 jayanthvn

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days

github-actions[bot] avatar Jan 22 '23 00:01 github-actions[bot]

Issue closed due to inactivity.

github-actions[bot] avatar Feb 05 '23 00:02 github-actions[bot]