Use this guide to deploy an Astro Private Cloud (APC) data plane with the Helm-based Astronomer platform charts. Data planes host Airflow runtimes and execute Dag workloads while relying on the APC control plane for shared services such as the UI, Houston API, monitoring coordination, and authentication.Documentation Index
Fetch the complete documentation index at: https://astronomer-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, deploy the control plane and verify network connectivity between the clusters. See Install the APC Control Plane for setup steps.- EKS on AWS
- GKE on GCP
- AKS on Azure
- Other
The following prerequisites apply when running Astro Private Cloud on Amazon EKS. See theOthertab if you run a different version of Kubernetes on AWS.
- An EKS Kubernetes cluster, running a version of Kubernetes certified as compatible on the Kubernetes Version Compatibility Reference that provides the following components:
- The Amazon EBS CSI driver (or an alternative CSI) must be installed on the Kubernetes Cluster.
- An AWS Load Balancer Controller for the IP target type is required for all private Network Load Balancers (NLBs). See Installing the AWS Load Balancer Controller add-on.
- A PostgreSQL instance, accessible from your Kubernetes cluster, and running a version of Postgres certified as compatible on the Version Compatibility Reference.
- PostgreSQL superuser permissions.
- Permission to create and modify resources on AWS.
- Permission to generate a certificate that covers a defined set of subdomains.
- An SMTP service and credentials. For example, Mailgun or Sendgrid.
- The AWS CLI.
- (Optional)
eksctlfor creating and managing your Astronomer cluster on EKS. - A machine meeting the following criteria with access to the Kubernetes API Server:
- Network access to the Kubernetes API Server - either direct access or VPN.
- Network access to load-balancer resources that are created when Astro Private Cloud is installed later in the procedure - either direct access or VPN.
- Configured to use the DNS servers where Astro Private Cloud DNS records can be created.
- Helm (minimum v3.6).
- The Kubernetes CLI (kubectl).
- (Situational) The OpenSSL CLI might be required to troubleshoot certain certificate-related conditions.
Ingress controller considerations [#decide-ingress-controller]
Astro Private Cloud requires a Kubernetes Ingress controller in the data plane to function and provides an integrated Ingress controller by default. Before installing, you need to decide whether to use a third-party ingress controller or use Astronomer’s integrated ingress controller. Astronomer generally recommends you use the integrated Ingress controller, but Astro Private Cloud also supports certain third-party ingress-controllers. Ingress controllers typically need elevated permissions, including aClusterRole, to function. Specifically, the Astro Private Cloud Ingress controller requires the ability to:
- List all namespaces in the cluster.
- View ingresses in the namespaces.
- Retrieve secrets in the namespaces to locate and use private TLS certificates that service the ingresses.
Step 1: Create a directory to hold files used when provisioning the data plane [#structure-platform-environments]
Reuse the same top-level directory you created during the control plane install (for example,~/astronomer-dev) and create a subdirectory for each data plane. Using names such as ~/astronomer-dev/dp-dev-01a, ~/astronomer-dev/dp-dev-01b, or ~/astronomer-dev/dp-prod-01a keeps the control plane environment obvious in the path and scales cleanly as you add more data planes.
Certain files in the project directory might contain secrets when you set up your sandbox or development environments. For your first install, keep these secrets in a secure place on a suitable machine. As you progress to higher environments, such as staging or production, secure these files separately in a vault and use the remaining project files in your directory to serve as the basis for your CI/CD deployment.
Step 2: Create values.yaml from a template [#create-valuesyaml]
Astro Private Cloud uses Helm to apply platform-level configurations. Choose your cloud provider tab below to copy a ready-to-use values.yaml, then update image tags, domains, and secrets before deploying.
- EKS on AWS
- GKE on GCP
- AKS on Azure
- Other
Step 3: Choose and configure the data plane domain prefix [#configure-domain-prefix]
Assign a unique value toglobal.plane.domainPrefix. Astronomer uses this prefix as the leftmost label for every data plane hostname (for example, commander.<domainPrefix>.<baseDomain> and prometheus.<domainPrefix>.<baseDomain>) and includes it in monitoring metadata.
- Use a DNS-compliant label: lowercase letters, numbers, and hyphens only; 1–63 characters; and no leading or trailing hyphen.
- Confirm you can create DNS records and issue TLS certificates for the resulting hostnames. A later step lists the exact FQDNs that require coverage.
Step 4: Configure a base domain [#configure-baseDomain]
Setglobal.baseDomain in this data plane’s values.yaml to the same value used by the control plane. All planes must share the exact base domain so HTTPS certificates and DNS records align.
Update your values file with the base domain. For example:
Step 5: Create the Astro Private Cloud platform namespace [#create-astronomer-namespace]
In your Kubernetes cluster, create a Kubernetes namespace to contain the Astro Private Cloud platform, for exampleapc-dp-01:
Step 6: Request and validate an Astronomer TLS certificate [#astronomer-tls-certificate]
To install Astro Private Cloud, you need a TLS certificate that is valid for several domains. One of the domains is the primary name on the certificate, also known as the common name (CN). The additional domains are equally valid, supplementary domains known as Subject Alternative Names (SANs). Astronomer requires a private certificate to be present in the Astro Private Cloud platform namespace, even if you use a third-party ingress controller that doesn’t otherwise require it.Request an ingress controller TLS certificate [#request-a-certificate-bundle]
Request a TLS certificate from your security team for Astro Private Cloud. In your request, include the following:- Use
<domainPrefix>.<baseDomain>as the Common Name (CN). If your certificate authority will not issue certificates for the bare base domain, usecommander.<domainPrefix>.<baseDomain>as the CN instead. - Add Subject Alternative Names (SANs) for either of the following options:
- Option 1: request a wildcard SAN of
*.<domainPrefix>.<baseDomain>plus an explicit SAN for<domainPrefix>.<baseDomain>. - Option 2: list each hostname individually:
<domainPrefix>.<baseDomain>(Commander metadata service)commander.<domainPrefix>.<baseDomain>deployments.<domainPrefix>.<baseDomain>(required for Airflow UIs and APIs)prometheus.<domainPrefix>.<baseDomain>prom-proxy.<domainPrefix>.<baseDomain>registry.<domainPrefix>.<baseDomain>(only if you keep the integrated registry enabled)es-proxy.<domainPrefix>.<baseDomain>andelasticsearch.<domainPrefix>.<baseDomain>(only when logging tags are enabled)
- Option 1: request a wildcard SAN of
- If you use the Astro Private Cloud integrated container registry, specify that the encryption type of the certificate must be RSA.
- Request the following return format:
- A
key.pemcontaining the private key in pem format - Either a
full-chain.pem(containing the public certificate and additional certificates required to validate it, in pem format) or a barecert.pemand explicit affirmation that there are no intermediate certificates and that the public certificate is the full chain. - Either the
private-root-ca.pemin pem format of the private Certificate Authority used to create your certificate or a statement that the certificate is signed by a public Certificate Authority.
- A
Validate the received certificate and associated items
Ensure that you received each of the following three items:- A
key.pemcontaining the private key in pem format. - Either a
full-chain.pem, in pem format, that contains the public certificate and additional certificates required to validate it or a barecert.pemand explicit affirmation that there are no intermediate certificates and that the public certificate is the full chain. - Either the
private-root-ca.pemin pem format of the private Certificate Authority used to create your certificate or a statement that the certificate is signed by public Certificate Authority.
openssl CLI:
X509v3 Subject Alternative Name section of this report includes either a single *.<baseDomain> wildcard domain or all subdomains, then the certificate creation was successful.
Confirm that your full-chain certificate chain is ordered correctly. To determine your certificate chain order, run the following command using the openssl CLI:
- Domain
- Intermediate (optional)
- Root
(Optional) Additional validation for the Astronomer integrated container registry [#docker-registry-cert-encryption-restrictions]
If you don’t plan to store images in Astronomer’s integrated container registry and instead plan to store all container images using anexternal container registry, you can skip this step.
sha1WithRSAEncryption.
Step 7: Store and configure the ingress controller TLS certificate [#public-tls-full-chain-certificate]
Determine whether or not your certificate was issued by an intermediate certificate-authority. If you do not know, assume you use an intermediate certificate and attempt to obtain afull-chain.pem bundle from your certificate authority.
Certificates issued by operators of root certificate authorities, including but not limited to LetsEncrypt, are frequently issued from intermediate certificate authorities associated with a trusted root CA.
If, and only if, your certificate was issued directly by the root Certificate Authority of a universally trusted certificate authority, and not from one of their intermediaries, then the server.crt is also the full-chain certificate bundle.
Identify your full-chain public certificate .pem file and use it while storing and configuring the ingress controller TLS certificate.
Run the following command to store the public full-chain certificate in the Astro Private Cloud Platform Namespace in a tls-type Kubernetes secret. You can create a custom name for this secret. The following example uses the name, astronomer-tls.
astronomer-tls with no substitutions is recommended when using a third-party ingress controller.
Step 8: (Optional) Configure a third-party ingress controller [#configure-third-party-ingress-controller]
If you use Astro Private Cloud’s integrated ingress controller, you can skip this step. Complete the full setup as described in Third-party Ingress-Controllers, which includes steps to configure ingress controllers in specific environment types. When you’re done, return to this page and continue to the next step.Step 9: Configure a private certificate authority [#configure-private-certificate-authority]
Skip this step if you don’t use a private Certificate Authority (private CA) to sign the certificate used by your ingress-controller. Or, if you don’t use a private CA for any of the following services that the Astro Private Cloud platform interacts with. Astro Private Cloud trusts public Certificate Authorities automatically. Astro Private Cloud must be configured to trust any private Certificate Authorities issuing certificates for systems Astro Private Cloud interacts with, including but not limited-to:- ingress controller
- any container registries that Kubernetes pulls from
- if using OAUTH, the OAUTH provider
- if using external Elasticsearch, any external Elasticsearch instances
- if using external Prometheus, any external Prometheus instances
astronomer-ca), add it to global.privateCaCerts in values.yaml so platform components trust the issuer.
Astro CLI users must also configure both their operating system and container solution,Docker Desktop or Podman, to trust the private certificate Authority that was used to create the certificate used by the Astro Private Cloud ingress controller and any third-party container registries.
Step 10: Confirm your Kubernetes cluster trusts required CAs [#private-cas-for-kubernetes]
If at least one of the following circumstances apply to your installation, complete this step:- Users will deploy images to an external container registry and that registry is using a TLS certificate issued by a private CA.
- You plan for your users to deploy Airflow images to Astro Private Cloud’s integrated container registry and Astronomer is using a TLS certificate issued by a private CA.
global.privateCaCerts to the list of certificates trusted by Kubernetes. This can be enabled by setting global.privateCaCertsAddToHost.enabled and global.privateCaCertsAddToHost.addToContainerd to true in your values.yaml file and setting global.privateCaCertsAddToHost.containerdConfigToml to:
apc-01.mydomain.internal, the domain prefix is apc-dp-01a, and the CA public certificate is stored in the namespace in a secret named my-private-ca, the global.privateCaCertsAddToHost section would be:
Step 11: Configure volume storage classes
Skip this step if your cluster defines a volume storage class, and you want to use it for all volumes associated with Astro Private Cloud and its Airflow Deployments. Astronomer strongly recommends that you do not back any volumes used for Astro Private Cloud with mechanical hard drives. Createstorage-class-config.yaml in your project directory and update the configuration to match your environment:
elasticsearch section unless you plan to enable logging (tags.logging: true).
Merge these values into values.yaml manually or by using a YAML merge tool of your choosing.
Step 12: Configure the database [#configure-the-database]
The data plane needs access to a database to create and manage the Airflow Deployment databases. To do this an admin user with the ability to create databases and users should be configured and placed into theastronomer-bootstrap secret in the data plane namespace.
- Ensure firewalls, network policies, and routing rules allow pods in this data plane cluster to reach the database host/port.
-
Create a Kubernetes secret with the admin user connection string in the data plane namespace:
If the secret already exists, use
kubectl applyto update it instead of recreating it.
Step 13: Configure an external Docker registry for Airflow images [#configure-a-private-docker-registry-airflow]
Astro Private Cloud users create customized Airflow container images when they deploy project code to the platform. These images frequently contain sensitive information and must be stored in a secure location accessible to Kubernetes.- Anonymous
- Authenticated
Ensure network access from the cluster to your registry endpoint and limit visibility to trusted networks (for example private subnets or VPN access). No additional Astronomer configuration is required.
Step 14: Determine which version of Astro Private Cloud to install [#determine-version-of-astronomer]
Astronomer recommends new Astro Private Cloud installations use the most recent version available in either the Stable or Long Term Support (LTS) release-channel. Keep this version number available for the following steps. For a separate control plane and data plane topology, at least version 1.0.0 of Astro Private Cloud is required. See Astro Private Cloud’s lifecycle policy and version compatibility reference for more information.Step 15: Fetch Airflow Helm charts [#fetch-airflow-helm-charts]
If you have internet access tohttps://helm.astronomer.io, run the following command on the machine where you want to install Astro Private Cloud:
https://helm.astronomer.io, download the Astro Private Cloud Platform Helm chart file corresponding to the version of Astro Private Cloud you are installing or upgrading to from https://helm.astronomer.io/astronomer-<version number>.tgz. For example, for Astro Private Cloud v1.0.0 you would download https://helm.astronomer.io/astronomer-1.0.0.tgz. This file does not need to be uploaded to an internal chart repository.
Step 16: Create and customize upgrade.sh [#create-and-customize-upgrades]
Create a file namedupgrade.sh in your platform deployment project directory containing the following script. Specify the following values at the beginning of the script:
CHART_VERSION: Your Astro Private Cloud version, including patch and avprefix. For example,v1.0.0.RELEASE_NAME: Your Helm release name.astronomeris strongly recommended.NAMESPACE: The namespace to install platform components into.astronomeris strongly recommended.CHART_NAME: Set toastronomer/astronomerif fetching platform images from the internet. Otherwise, specify the filename if you’re installing from a file (for exampleastronomer-1.0.0.tgz).
Step 18: (OpenShift only) Apply OpenShift-specific configuration [#openshift-configuration]
If you’re not installing Astro Private Cloud into an OpenShift Kubernetes cluster, skip this step. Add the following values intovalues.yaml. You can do this manually or by using a YAML merge tool of your choosing.
Only Ingress objects with the annotation
route.openshift.io/termination: "edge" are supported for generating routes in OpenShift 4.11 and later.
Other termination types are no longer supported for automatic route generation.If you’re on an older version of OpenShift, route creation should be done manually.Step 19: (Optional) Limit Astronomer to a namespace pool [#configure-namespace-pools]
By default, Astro Private Cloud automatically creates namespaces for each new Airflow Deployment. You can restrict the Airflow management components of Astro Private Cloud to a list of predefined namespaces and configure it to operate without a ClusterRole by following the instructions in Configure a Kubernetes namespace pool for Astro Private Cloud. If you want to disable creation of role and rolebindings for commander, config-syncer, and kubestate metrics, you can setglobal.features.namespacePools.createRbac to false.
When global.rbacEnabled is set to false, the platform no longer creates any role, rolebindings, or service accounts. The user must define default roles to the k8s default service account to continue with the platform install. See Bring your own Kubernetes service accounts for setup steps.
Step 20: (Optional) Enable sidecar logging [#configure-sidecar-logging]
Running a logging sidecar to export Airflow task logs is essential for running Astro Private Cloud in a multi-tenant cluster. By default, Astro Private Cloud creates a privileged DaemonSet to aggregate logs from Airflow components for viewing from within Airflow and the Astro Private Cloud UI. You can replace this privileged Daemonset with unprivileged logging sidecars by following instructions in Export logs using container sidecars.Step 21: Install the data plane using Helm [#install-astronomer-using-helm]
Deploy the data plane using theupgrade.sh script you created earlier. Confirm RELEASE_NAME, NAMESPACE, and CHART_VERSION reflect your environment, then execute:
./upgrade.sh --dry-run or use helm template with the same flags defined in the script.
Step 22: Configure DNS to point to the ingress controller [#configure-dns-ingress-controller]
Whether you use Astronomer’s integrated ingress controller or a third-party controller, publish the same set of DNS records so users can reach data plane services.-
If you use the integrated controller, get the load balancer address directly:
- If you use a third-party controller, ask your ingress administrator for the hostname or IP address that should front the Astronomer routes (refer back to the details you gathered in Step 9).
*.<domainPrefix>.<baseDomain>, such as *.apc-dp-01a.apc-01.example.com or individual CNAME records for the following data plane hostnames so that traffic routes through the chosen load balancer:
<domainPrefix>.<baseDomain>commander.<domainPrefix>.<baseDomain>prometheus.<domainPrefix>.<baseDomain>prom-proxy.<domainPrefix>.<baseDomain>registry.<domainPrefix>.<baseDomain>(only if you keep the integrated registry enabled)prometheus.<domainPrefix>.<baseDomain>prom-proxy.<domainPrefix>.<baseDomain>registry.<domainPrefix>.<baseDomain>(only if you keep the integrated registry enabled)es-proxy.<domainPrefix>.<baseDomain>andelasticsearch.<domainPrefix>.<baseDomain>(only when logging tags are enabled)
@) directly to the load balancer address and mapping the remaining hostnames as CNAMEs to that apex. In lower environments, you can safely use a low TTL (for example 60 seconds) to speed up troubleshooting during the initial rollout.
After your DNS provider propagates the records, verify them with tools like dig commander.<domainPrefix>.<baseDomain> or getent hosts commander.<domainPrefix>.<baseDomain>. You can complete this DNS work after verifying the platform pods—Astronomer services stay healthy without external DNS, but end users need these records to sign in.
Step 23: Verify Pods creation [#verify-pods]
To verify all pods are up and running, run:If you added the
podLabelsconfiguration, you can also search for Pods created by Astro Private Cloud by searching for the key-value pair in the label you created. SeeAdd Pod labels.Additional customization
The following topics include optional information about one or multiple topics in the installation guide:- Configure a private Certificate Authority
- Add trusted CAs to Docker Desktop