Skip to content

Commit

Permalink
upi/gcp: increase the NAT ports for control plane to 7168
Browse files Browse the repository at this point in the history
This change increases the minimum ports per control-plane instance to
allow much higher resiliency. It is based on #2376, which did the same
for GCP IPI.
  • Loading branch information
jstuever committed Oct 7, 2019
1 parent ba00702 commit 86bdaae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions upi/gcp/01_vpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def GenerateConfig(context):
'name': context.properties['infra_id'] + '-nat-master',
'natIpAllocateOption': 'MANUAL_ONLY',
'natIps': ['$(ref.' + context.properties['infra_id'] + '-master-nat-ip.selfLink)'],
'minPortsPerVm': 7168,
'sourceSubnetworkIpRangesToNat': 'LIST_OF_SUBNETWORKS',
'subnetworks': [{
'name': '$(ref.' + context.properties['infra_id'] + '-master-subnet.selfLink)',
Expand All @@ -54,6 +55,7 @@ def GenerateConfig(context):
'name': context.properties['infra_id'] + '-nat-worker',
'natIpAllocateOption': 'MANUAL_ONLY',
'natIps': ['$(ref.' + context.properties['infra_id'] + '-worker-nat-ip.selfLink)'],
'minPortsPerVm': 128,
'sourceSubnetworkIpRangesToNat': 'LIST_OF_SUBNETWORKS',
'subnetworks': [{
'name': '$(ref.' + context.properties['infra_id'] + '-worker-subnet.selfLink)',
Expand Down

0 comments on commit 86bdaae

Please sign in to comment.