Report this

What is the reason for this report?

route outbound traffic of my digital ocean kubernetes cluster through VPC Gateway's Reserved IP

Posted on April 22, 2024

I want to route outbound traffic of my digital ocean kubernetes cluster through VPC Gateway’s Reserved IP, I have already tried following StaticRoute config file provided by DigitalOcean -

apiVersion: networking.digitalocean.com/v1
kind: StaticRoute
metadata:
  name: public-egress
spec:
  destinations:
    - "0.0.0.0/5"
    - "8.0.0.0/7"
    - "11.0.0.0/8"
    - "12.0.0.0/6"
    - "16.0.0.0/4"
    - "32.0.0.0/3"
    # - 64.0.0.0/2    NOT TO BE USED! Overlaps with DO API endpoints.
    # - 128.0.0.0/3   NOT TO BE USED! Overlaps with DOKS API endpoints.
    - "160.0.0.0/5"
    - "168.0.0.0/6"
    - "172.0.0.0/12"
    - "172.32.0.0/11"
    - "172.64.0.0/10"
    - "172.128.0.0/9"
    - "173.0.0.0/8"
    - "174.0.0.0/7"
    - "176.0.0.0/4"
    - "192.0.0.0/9"
    - "192.128.0.0/11"
    - "192.160.0.0/13"
    - "192.169.0.0/16"
    - "192.170.0.0/15"
    - "192.172.0.0/14"
    - "192.176.0.0/12"
    - "192.192.0.0/10"
    - "193.0.0.0/8"
    - "194.0.0.0/7"
    - "196.0.0.0/6"
    - "200.0.0.0/5"
    - "208.0.0.0/4"
  gateway: "<YOUR_EGRESS_GW_DROPLET_PRIVATE_IP_HERE>"


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,

Indeed you can use the Static Routes Operator:

https://github.com/digitalocean/k8s-staticroute-operator

Your operator setup looks correct, but have configured a NAT GW Droplet as per the documentation detailed here?

Also do you get any specific errors? And did you follow the steps from the README.md file from that repository or did you follow a different guide?

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.