Kubernetes, NGINX: How to get fixed outgoing IP for Pods to whitelist them in external services

9/20/2019

How can I get a fixed IP for Pods to whitelist them in external service.

I have configured the Nginx Controller as loadbalancer and it has a fixed external IP, but the Pods seems to have not the same IP or change it during the routing process, so I can not white list them in specific services.

What's the way to go to archive this?

-- Tim Schwalbe
kubernetes
nginx

1 Answer

9/23/2019

Actual Answer:

Solution 1: Was not working for me, as I don't know how to assign external IPs to the CR. https://github.com/nirmata/kube-static-egress-ip

Solution 2: Cloud NAT https://cloud.google.com/nat/docs/overview

-- Tim Schwalbe
Source: StackOverflow