A custom registry can still connect to public networks or internet. Therefore, this procedure is different if you’re installing Astronomer in an air gapped environment. If you need to create a custom registry for a system that can’t connect to the public networks or internet, follow the configuration steps in the Air gapped tabs.
Prerequisites
- Helm.
- kubectl.
- Astro CLI version 1.3.0+.
- A custom container image registry.
- A process for building and pushing your Astro projects as images to your custom registry.
Setup
- Standard
- Air gapped
-
Create a secret for the container repository credentials in your Astronomer namespace:
To have Astro Private Cloud sync the registry credentials to all Deployment namespaces, add the following annotation:
To use different registries for each Deployment, create the same secret in each Deployment namespace instead of your Astronomer namespace. Make sure to specify different custom registries using
--docker-server. If you don’t need to synch your secrets between Deployments, you don’t need to add the secret annotation.- In the APC UI, go to your Clusters page and select your cluster.
-
In the cluster details page, click Edit. In the Cluster Deployments Configuration YAML editor, click Find and search for the feature you want to override. Then add the following override in the appropriate YAML field:
For details on using the UI for configuration, see Override base configuration.
To use different registries for each Deployment, omit the
astronomer.houston.config.deployments.registry.protectedCustomRegistry.updateRegistry.host setting.If you do set the host, use the format <registry>/<repo-name>/<subdirectory>, where <repo-name>/<subdirectory> includes the repository name and optionally a subdirectory within that repository.- Save and apply your changes in the UI.
-
For any existing Deployments, run the following command to sync the registry credentials.
If you’re using different registries for each Deployment, skip this step.