https://rancher.com/ logo
Title
e

elegant-diamond-44650

08/09/2022, 1:49 PM
Hi, Is there a way to make sure my AWS cluster only uses a fixed elastic ip, Basically my 4 nodes have varying IP’s so its hard to get other IT to white list, but if I could restrict them down then its not an issue for them. How does everyone usually do this?
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