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!
Hi there,
Indeed you can use the Static Routes 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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.