Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

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

Open
huang-jy opened this issue Sep 13, 2018 · 2 comments
Open

Comments

@huang-jy
Copy link

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
Copy link

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

@jakelima18
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants