Skip to content

Commit 0831057

Browse files
committed
Adding ips_per_nat config for a family blueprints
1 parent d572e9f commit 0831057

7 files changed

Lines changed: 10 additions & 2 deletions

File tree

examples/gke-a3-highgpu.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ deployment_groups:
3333
source: modules/network/vpc
3434
settings:
3535
subnetwork_name: $(vars.deployment_name)-subnet
36+
ips_per_nat: 6
3637
mtu: 8244
3738
secondary_ranges_list:
3839
- subnetwork_name: $(vars.deployment_name)-subnet

examples/gke-a3-megagpu/gke-a3-megagpu.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ deployment_groups:
6666
source: modules/network/vpc
6767
settings:
6868
subnetwork_name: $(vars.deployment_name)-subnet
69+
ips_per_nat: 6
6970
mtu: 8244
7071
secondary_ranges_list:
7172
- subnetwork_name: $(vars.deployment_name)-subnet

examples/gke-a3-ultragpu/gke-a3-ultragpu.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ deployment_groups:
5151
source: modules/network/vpc
5252
settings:
5353
network_name: $(vars.deployment_name)-net-0
54+
ips_per_nat: 6
5455
subnetworks:
5556
- subnet_name: $(vars.deployment_name)-sub-0
5657
subnet_region: $(vars.region)
@@ -76,6 +77,7 @@ deployment_groups:
7677
source: modules/network/vpc
7778
settings:
7879
network_name: $(vars.deployment_name)-net-1
80+
ips_per_nat: 6
7981
subnetworks:
8082
- subnet_name: $(vars.deployment_name)-sub-1
8183
subnet_region: $(vars.region)

examples/gke-a4/gke-a4.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ deployment_groups:
6666
source: modules/network/vpc
6767
settings:
6868
network_name: $(vars.deployment_name)-net-0
69+
ips_per_nat: 6
6970
subnetworks:
7071
- subnet_name: $(vars.deployment_name)-sub-0
7172
subnet_region: $(vars.region)
@@ -91,6 +92,7 @@ deployment_groups:
9192
source: modules/network/vpc
9293
settings:
9394
network_name: $(vars.deployment_name)-net-1
95+
ips_per_nat: 6
9496
subnetworks:
9597
- subnet_name: $(vars.deployment_name)-sub-1
9698
subnet_region: $(vars.region)

examples/gke-a4x/gke-a4x.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ deployment_groups:
8585
source: modules/network/vpc
8686
settings:
8787
network_name: $(vars.deployment_name)-net-0
88+
ips_per_nat: 6
8889
subnetworks:
8990
- subnet_name: $(vars.deployment_name)-sub-0
9091
subnet_region: $(vars.region)
@@ -110,6 +111,7 @@ deployment_groups:
110111
source: modules/network/vpc
111112
settings:
112113
network_name: $(vars.deployment_name)-net-1
114+
ips_per_nat: 6
113115
subnetworks:
114116
- subnet_name: $(vars.deployment_name)-sub-1
115117
subnet_region: $(vars.region)

modules/network/vpc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ limitations under the License.
203203
| <a name="input_extra_iap_ports"></a> [extra\_iap\_ports](#input\_extra\_iap\_ports) | A list of TCP ports for which to create firewall rules that enable IAP for TCP forwarding (use dedicated enable\_iap variables for standard ports) | `list(string)` | `[]` | no |
204204
| <a name="input_firewall_log_config"></a> [firewall\_log\_config](#input\_firewall\_log\_config) | Firewall log configuration for Toolkit firewall rules (var.enable\_iap\_ssh\_ingress and others) | `string` | `"DISABLE_LOGGING"` | no |
205205
| <a name="input_firewall_rules"></a> [firewall\_rules](#input\_firewall\_rules) | List of firewall rules | `any` | `[]` | no |
206-
| <a name="input_ips_per_nat"></a> [ips\_per\_nat](#input\_ips\_per\_nat) | The number of IP addresses to allocate for each regional Cloud NAT (set to 0 to disable NAT) | `number` | `2` | no |
206+
| <a name="input_ips_per_nat"></a> [ips\_per\_nat](#input\_ips\_per\_nat) | The number of IP addresses to allocate for each regional Cloud NAT (set to 0 to disable NAT). The number of NAT IPs depend on the port reservation allocated for each node and the number of ports that a single NAT IP can serve. Refer this documentation for more details: https://cloud.google.com/nat/docs/ports-and-addresses#port-reservation-examples | `number` | `2` | no |
207207
| <a name="input_labels"></a> [labels](#input\_labels) | Labels to add to network resources that support labels. Key-value pairs of strings. | `map(string)` | `{}` | no |
208208
| <a name="input_mtu"></a> [mtu](#input\_mtu) | The network MTU (default: 8896). Recommended values: 0 (use Compute Engine default), 1460 (default outside HPC environments), 1500 (Internet default), or 8896 (for Jumbo packets). Allowed are all values in the range 1300 to 8896, inclusively. | `number` | `8896` | no |
209209
| <a name="input_network_address_range"></a> [network\_address\_range](#input\_network\_address\_range) | IP address range (CIDR) for global network | `string` | `"10.0.0.0/9"` | no |

modules/network/vpc/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ variable "network_description" {
196196

197197
variable "ips_per_nat" {
198198
type = number
199-
description = "The number of IP addresses to allocate for each regional Cloud NAT (set to 0 to disable NAT)"
199+
description = "The number of IP addresses to allocate for each regional Cloud NAT (set to 0 to disable NAT). The number of NAT IPs depend on the port reservation allocated for each node and the number of ports that a single NAT IP can serve. Refer this documentation for more details: https://cloud.google.com/nat/docs/ports-and-addresses#port-reservation-examples"
200200
default = 2
201201
}
202202

0 commit comments

Comments
 (0)