GoogleCloudPlatform / terraform-google-nat-gateway

Modular NAT Gateway on Google Compute Engine for Terraform.
Apache License 2.0
156 stars 131 forks source link

Outbound traffic is not being routed via gw (multi-zone configuration) #88

Open huang-jy opened 6 years ago

huang-jy commented 6 years ago

I have a regional GKE cluster and want to have a NAT box in each zone and all traffic within the zone routed via the corresponding nat, to hide the IP of the worker nodes.

I have attempted to use this example as a starting point:

https://github.com/GoogleCloudPlatform/terraform-google-nat-gateway/blob/master/examples/ha-nat-gateway/main.tf

The config creates the nat boxes, but when I run a pod using alpine and curl ipinfo.io/ip from within the container to get the external ip as seen by the container in the cluster, it returns the ip of the host, meaning the routing to send outbound traffic from the cluster to the nat gw isn't there.

Am I missing something? Or is the example incomplete?

fs-wnelson commented 5 years ago

I have the same problem, but with the single NAT box.

jakelima18 commented 5 years ago

I have the same problem. In my case, the images are not pulling.