- Create an Astronomer account.
- Create a new Google Cloud project.
- Enable Google Cloud APIs and add an IAM service account that will be used by Astro.
Prerequisites
- A Google Cloud project with billing enabled. For security reasons, Google Cloud project with existing infrastructure aren’t supported.
- A user with Owner permissions in your project.
- Google Cloud Shell.
-
CIDR blocks of with ranges
/19,/20,/22, and/22are required for the Astro Data Plane. If you don’t have any preferred CIDR block, Astro will provision VPCs using a default CIDR ranges. See GCP resource reference for details. -
A minimum CPU quota of 48. To adjust your project’s quota limits, see Managing your quota using the Cloud console. To view the quota limits for a project, run
gcloud services enable compute.googleapis.comin the Google Cloud CLI. -
A minimum
N2_CPUquota of 24. To adjust your project’s quota limits, see Managing your quota using the Cloud console. To view the quota limits for a project, rungcloud services enable compute.googleapis.comin the Google Cloud CLI. - A subscription to the Astro Status Page. This ensures that you’re alerted when an incident occurs or scheduled maintenance is required.
-
The following domains added to your organization’s allowlist for any user and CI/CD environments:
https://cloud.astronomer.io/https://api.astronomer.io/https://images.astronomer.cloud/https://auth.astronomer.io/https://updates.astronomer.io/https://install.astronomer.io/https://astro-<your-org>.datakin.com/https://<your-org>.astronomer.run/
VPC peering prerequisites (optional)
If any of your GCP resources are on a private network, you can access them using one of the following options:- Private Services Connect
- A VPC Peering connection between Astronomer’s VPC and the VPCs for your broader network
- Subnet CIDR: Used by nodes in your GKE cluster (Default:
172.20.0.0/22) - Pod CIDR: Used by GKE pods (Default:
172.21.0.0/19) - Service Address CIDR: Used by GKE services (Default:
172.22.0.0/22) - Service VPC Peering: Used by Private Service Connections (Default:
172.23.0.0/20)
Access Astro
- Go to https://cloud.astronomer.io/ and create an account, or enter your email address, and then click Continue.
-
Select one of the following options to access the Astro UI:
- Enter your password and click Continue.
- To authenticate with an identity provider (IdP), click Continue with SSO, enter your username and password, and then click Sign In.
- To authenticate with your GitHub account, click Continue with GitHub, enter your username or email address, enter your password, and then click Sign in.
- To authenticate with your Google account, click Continue with Google, choose an account, enter your username and password, and then click Sign In.
Activate the data plane
The data plane is a collection of infrastructure components for Astro that run in your cloud and are fully managed by Astronomer. This includes a central database, storage for Airflow tasks logs, and the resources required for task execution. Click the following button to open Google Cloud Shell and run a script to activate the data plane:-
Enable the following required services for running the data plane:
storage.googleapis.comstorage-component.googleapis.comstorage-api.googleapis.comcompute.googleapis.comcontainer.googleapis.comdeploymentmanager.googleapis.comcloudresourcemanager.googleapis.comcloudkms.googleapis.comsqladmin.googleapis.comservicenetworking.googleapis.comdns.googleapis.comservicedirectory.googleapis.com
-
Create a service account called
astronomer@astro-remote-mgmt.iam.gserviceaccount.comthat Astro uses to access the data plane.
Provide setup information to Astronomer
Once you’ve activated your data plane, provide Astronomer with:- Your GCP project ID.
- Your preferred Astro cluster name.
- The GCP region that you want to host your cluster in.
- Your preferred node instance type.
- Your preferred CloudSQL instance type.
- Your preferred maximum node count.
- (Optional) Your custom CIDR ranges for connecting to Astronomer’s services.
us-central1 with a node pool of e2-standard-4 nodes. For more information, see GCP resource reference.
Provide VPC peering information (Optional)
Astro supports Private Services Connect, which allows private consumption of services across VPC networks that belong to different projects or organizations. If you have created custom services that are not published using Private Services Connect, then you might want to peer with Astronomer. To set up peering, provide the following information to Astronomer:- VPC Name/ID and region for peering with Astronomer.
- Google Cloud project ID of the target VPC.
Astronomer support creates the cluster
After you provide Astronomer support with the setup information for your organization, Astronomer support creates your first cluster on GCP. Wait for confirmation from Astronomer support that the cluster has been created before creating a Deployment. If you submitted a VPC peering request, you’ll need to accept the request from Astronomer after Astro is installed. To accept the request, see Use VPC Network Peering. When VPC peering with Astronomer is complete, configure and validate the following items to ensure successful network communications between Astro and your resources:- Egress routes
- Network ACLs or Security Group rules of your resources