concept GKE in category apache airflow

appears as: GKE
Data Pipelines with Apache Airflow

This is an excerpt from Manning's book Data Pipelines with Apache Airflow.

When running on GCP, deploying on Google Kubernetes Engine (GKE) is probably the easiest approach (Figure 13.30). GKE is Google’s managed Kubernetes service which provides an easy way to deploy and manage containerized software. The other obvious option on GCP - running everything on Linux-based Compute Engine VMs - takes more work and time to get up and running as you have to configure everything yourself. Google already provides a managed Airflow service named Composer, but we will demonstrate how Airflow is deployed on GKE and can integrate with other GCP services.

Figure 13.35 Example GCP network layout with Airflow running on GKE, Cloud SQL for the metastore, and the Airflow webserver exposed via a Load Balancer.

As mentioned before, Airflow is installed on GKE. The webserver can be exposed to the outside world via a Load Balancer. Cloud Storage is a globally available service, not restricted to a VPC. However, GCP does provide a service named VPC Service Controls (VPC SC) to limit communications to selected services (including Cloud Storage) to be accessed only from within your VPC. The Cloud SQL database, serving the Airflow metastore, cannot run in the same subnet as your own services. Google creates a fully managed database for you in its own perimeter. Thus, a connection to the database must be created either via the public internet, or by peering your own and Google’s VPC networks.