Is there a way to set nat on kubernetes nodes?

Hello Support team,

I hope you are all doing well!

I have a kubernetes cluster. And I have a client that would like to whitelist IP addresses of my cluster. The problem is that the nodes are changing and the IPs are different. Is there a way to configure NAT or some sort of a single static IP that will be used for ALL outbound communication?

2 Replies

By nature of Kubernetes, although cluster Nodes will be administered new IP addresses when they recycle, NodeBalancers do not need to be created/destroyed and will have a static IP. For more information on how to setup a NodeBalancer as an LKE Ingress, be sure to check out the following guide:

Alternatively, you could setup a non-cluster Linode as a Router/NAT to serve as the static frontend of your cluster. This will require additional configuration than a NodeBalancer and some extra consideration since the more traffic your backend receives, the more CPU/RAM resources will be required to support the routing.

For information on setting up a router/forwarding, check out the following:

hi, this is for incoming traffic. Do you have a solution for outgoing traffic?

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct