resources:
-
type: compute.v1.address
name: nat-static-ip-{{ properties['compute.region'] }}
properties:
region: {{ properties['compute.region'] }}
description: NAT router static IP
-
name: nat-router-{{ properties['compute.region'] }}
type: compute.v1.router
properties:
description: "NAT router for egress from private Kubernetes clusters"
network: projects/{{ properties['core.project'] }}/global/networks/default
region: {{ properties['compute.region'] }}
bgp:
asn: {{ properties['asn'] }}
nats:
-
name: nat-{{ properties['compute.region'] }}
sourceSubnetworkIpRangesToNat: ALL_SUBNETWORKS_ALL_IP_RANGES
natIpAllocateOption: MANUAL_ONLY
natIPs:
- $(ref.nat-static-ip-{{ properties['compute.region'] }}.selfLink)