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.-
Open your
values.yamlfile. See Apply a Config Change. -
Add the following to your
values.yamlfile:
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.- 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.