Report this

What is the reason for this report?

DOKS - how to set pod to use an external proxy

Posted on April 19, 2021

To ensure all outbound calls come from the same IP address (so that it can be whitelist), how do I consider a container/pod to use an external proxy service



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,

To ensure all outbound traffic from your pods in the DigitalOcean Managed Kubernetes comes from a consistent IP address, consider setting up a DOKS Egress Gateway.

This can be achieved using Crossplane and the Static Routes Operator. The process involves configuring a gateway that directs outbound traffic through a specific node, ensuring consistent IP usage for external communications.

A detailed guide and implementation instructions are available in DigitalOcean’s container blueprints on GitHub, specifically in the “DOKS-Egress-Gateway” section.

This approach is particularly useful for scenarios where IP whitelisting is necessary.

For a comprehensive step-by-step guide, you can refer to DigitalOcean’s DOKS Egress Gateway guide on GitHub.

Best,

Bobby

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.