-
Notifications
You must be signed in to change notification settings - Fork 123
Why are we adding public subnet to the Router NAT #52
Comments
@syedrakib this is what I think-
|
The |
You are right that there is a typo here between the comment and the code. After playing around with the TF resource and observing its changes in GCP, i realised that the typo is actually in the code and not in the comment. The value for I was still hoping there could be a confirmation from the author of this file that the typo is in the code or in the comment. Because, for a newcomer the comment/code is misleading. |
|
I applied this configuration with |
Hi @Bluesboy, are you using v0.3.0 of our modules? https://github.com/gruntwork-io/terraform-google-network/releases/tag/v0.3.0 |
Same for me. I am using v0.4.0. module "gke-cluster" {
...
subnetwork = module.vpc_network.public_subnetwork
enable_private_nodes = "true"
} |
I believe the change made in PR #53 was an error. The documentation states:
This means that the NAT should be on for the |
After re-reading this issue and the docs I'm also under the impression that the changes in #53 were incorrect and I'm going to revert them in the next release. |
Any news on that ? |
I've reverted the change. Its pending approval in #57 |
Revert Subnetwork change to resolve #52
We use NAT for the private instances to reach out to the internet.
Referring to Lines68-74, the comment says "Manually define the subnetworks ... exclude the public subnetwork".
However, in the
subnetwork
block it is then selectingvpc_subnetwork_public
. Shouldn't it be selecting thevpc_subnetwork_private
instead so that we can allow the private subnet to use the NAT?The text was updated successfully, but these errors were encountered: