Standard and dedicated cluster support for GCP networking
Standard clusters have different connection options than dedicated clusters. Standard clusters can connect to GCP in the following ways:- Using static external IP addresses.
- Using Private Service Connect to all managed Google APIs.
- VPC peering
Access a public GCP endpoint
All Astro clusters include a set of external IP addresses that persist for the lifetime of the cluster. When you create a Deployment in your workspace, Astro assigns it one of these external IP addresses. To facilitate communication between Astro and your cloud, you can allowlist these external IPs in your cloud. If you have no other security restrictions, this means that any cluster with an allowlisted external IP address can access your GCP resources through a valid Airflow connection.Allowlist a Deployment’s external IP addresses on GCP
- In the Astro UI, select a Workspace, click Deployments, and then select a Deployment.
- Select the Details tab.
- In the Other section, you can find the External IPs associated with the Deployment.
Dedicated cluster external IP addresses
Dedicated cluster external IP addresses
If you use Dedicated clusters and want to allowlist external IP addresses at the cluster level instead of at the Deployment level, you can find the list cluster-level external IP addresses in your Organization’s Clusters page.
- In the Organization section of the Astro UI, click Organization Settings, then click Clusters, then select a cluster.
- In the Details page, copy the IP addresses listed under External IPs.
Create a private connection between Astro and GCP
Choose one of the following setups based on the security requirements of your company and your existing infrastructure.- VPC peering
- Private Service Connect
- VPN
- Network Connectivity Center
This connection option is available only for dedicated Astro clusters.
-
Contact Astronomer support and provide the following information:
- Astro cluster ID and name.
- Google Cloud project ID of the target VPC.
- VPC NAME of the target VPC.
- Classless Inter-Domain Routing (CIDR) block of the target VPC. After receiving your request, Astronomer support will create a VPC peering connection from your Astro VPC to your target VPC. The support team will then provide you with your Astro cluster GCP project ID and VPC name.
-
Using the information provided by Astronomer support, create a peering connection from your target VPC to your Astro cluster VPC. For example, you can use the following gcloud CLI command to create the connection:
Hostname resolution options
Securely connect Astro to resources running in other VPCs or on-premises through a resolving service. As most flexible and reliable solution Astronomer recommends using Domain Name System (DNS) forwarding. In case of small mount of records and immutable IP addresses, support team can create a Private zone with DNS records, pointed to customer’s resources.- Domain Name System forwarding
- Private hosted zone
- DNS peering
Use Domain Name System (DNS) forwarding to allow Astro to resolve DNS queries for resources running in other VPCs or on-premises. You have access to internal resources through private names. All changes in zone will be available for Astro environment immediately.To use this solution, make sure Astro can connect to the DNS server using a VPC peering or VPN connection and then submit a request to Astronomer support. With your request, include the following information:
- The domain name for forwarding requests
- The IP address of the DNS server where requests are forwarded