A custom registry can still connect to public networks or internet. Therefore, this procedure is different if you’re installing Astronomer in an airgapped environment. If you need to create a custom registry for a system that can’t connect to the public networks or internet, see Install Astronomer in an airgapped environment.
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
- Airgapped
-
Create a secret for the container repository credentials in your Astronomer namespace:
To have Astronomer Software 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.-
Open your
values.yamlfile. See Apply a Config Change. -
Add the following to your
values.yamlfile:
To use different registries for each Deployment, do not set
astronomer.houston.config.deployments.registry.protectedCustomRegistry.updateRegistry.host. When you specify the host, include both the registry and the repository in the format <registry>/<repo-name>/<subdirectory>, where <repo-name>/<subdirectory> represents a repository name and optionally a subdirectory within that repository.- Push the configuration change. See Apply a config change.
-
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.