Report this

What is the reason for this report?

Setup static outbound ip for kubernetes workload

Posted on January 10, 2026

Hello, We have a Kubernetes cluster running on DigitalOcean, and we were wondering if it is possible to configure a single static IP address for all outbound (egress) traffic originating from the cluster. Specifically, we would like all outgoing traffic from pods and services to appear as coming from one fixed public IP address. Could you please let us know: If this is supported on DigitalOcean Kubernetes (DOKS) What the recommended approach would be (e.g., NAT Gateway, Load Balancer, or another solution) Any limitations or considerations we should be aware of Thank you for your help



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

I think that the new routing agent should work for you.

Check out the docs here:

https://docs.digitalocean.com/products/kubernetes/how-to/use-routing-agent/

The routing agent lets you override the default route without impacting the overall cluster connectivity. You can use this feature with a NAT gateway to make the outgoing traffic from the Kubernetes cluster originate from one static egress IP address.

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.