How to Configure DOKS for NAT Gatewaypublic

Validated on 28 Aug 2025 • Last edited on 28 Aug 2025

A Virtual Private Cloud (VPC) is a private network interface for collections of DigitalOcean resources. VPC networks are inaccessible from the public internet and other VPC networks, and traffic on them doesn’t count against bandwidth usage. You can link VPC networks to each other using VPC peering connections.

To use a NAT gateway with DOKS, enable the routing agent on your cluster. Then, configure your routes to use the NAT gateway’s Routing table IP address, which you can find on the NAT gateway’s details page.

To navigate to the NAT gateway’s details page click Networking in the left menu, then click the VPC tab. Click on the VPC that contains the NAT gateway, then click its NAT Gateway tab. Click on the name of the NAT gateway to load its details.

For more information, read How to Use the Routing Agent in Kubernetes Clusters.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.