Join Slack
Powered by
This message was deleted.
# general
a
adamant-kite-43734
08/09/2022, 1:49 PM
This message was deleted.
r
rapid-printer-61897
08/09/2022, 7:00 PM
I don't think there is a way to automatically assign EC2 instances the same elastic IPs upon creation. If you need outbound traffic from the cluster to come from the same IP I think you can use a private subnet on your VPC and route the outbound traffic to a NAT gateway, then assign a elastic IP to the gateway.
https://aws.amazon.com/premiumsupport/knowledge-center/nat-gateway-vpc-private-subnet/
For the inbound traffic you can use an ELB to get traffic to the worker node EC2 instances in the private subnet.
https://rancher.com/docs/rancher/v2.5/en/installation/resources/k8s-tutorials/infrastructure-tutorials/nlb/
Both these options are little complicated when it comes to AWS networking but hopefully point you in the right direction.
e
elegant-diamond-44650
08/09/2022, 9:16 PM
Thanks!
@rapid-printer-61897
Yeah I will opt or the NAT Gateway route I think then, cheers!!
👍 1
2
Views
Open in Slack
Previous
Next