Report this

What is the reason for this report?

DOKS Egress gateway or guaranteed IP ranges?

Posted on April 14, 2023

Hey folks,

I have a DOKS cluster set up with multiple node pools and I am trying to figure out the best way to empower my customers to enable IP allowlist for my DOKS cluster.

Context: I have a bunch of workers running within my DOKS cluster that will try to access customer’s databases hosted on AWS, GCP, DigitalOcean, etc…

I would like to give them a set of IPs or CIDR ranges that they can turn on to enable me to access their network.

My current challenges: I have been sent to set up an Egress Gateway via Crossplane with DigitalOcean CRD (https://github.com/digitalocean/container-blueprints/tree/main/DOKS-Egress-Gateway).

This works fine, but I have a couple questions: (1) Does the StaticRoute CRD support multiple gateways with overlapping destinations ranges? (https://github.com/digitalocean/k8s-staticroute-operator) I have submitted an issue to the GitHub repo as well.

(2) Instead of specifying “destinations”, is there a way to specify exclude this destination range? That way, I can exclude DigitalOcean REST APIs and K8 private IPs. It will also save me from having to input 10k+ CIDR blocks (AWS has 7.5k IPv4 CIDR ranges).

I would love to hear if anyone has a better way to achieve my use case and/or have answers for above.

Thanks in advance, Robin.



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.

Hey!

I would say that it is probably better to use the Kubernetes Egress Gateway using Crossplane and Static Routes Operator.

DigitalOcean recently published a how to tutorial on how to do that which is a good indication that this will be the better supported way of doing it:

https://www.digitalocean.com/community/developer-center/setting-up-a-doks-egress-gateway-using-crossplane-and-static-routes-operator

- Bobby

Hi there,

Quick update here, DigitalOcean have just released a managed component for maintaining host routes in DOKS:

https://www.digitalocean.com/blog/introducing-doks-routing-agent

The new DOKS routing agent is a managed component for configuring static routes on Kubernetes worker nodes. It is a direct response to user feedback on its predecessor, the static route operator, and introduces new features to enhance routing flexibility. Despite being a managed component, the DOKS routing agent is included at no additional cost for users.

- 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.