Connecting to external Postgres and Redis¶
Caution
Anaconda recommends you connect to an external Postgres instance immediately after installation completes. If you do not, you will have to create a dump file from the internal Anaconda Enterprise Postgres instance to import into your own Postgres instance.
You can connect Anaconda Enterprise 5 (AE5) to your organization’s pre-existing Postgres or redis instance for both Gravity and BYOK8s installations. Connecting to an external Postgres or redis instance enables you to take advantage of multiple High Availability/Disaster Recovery (HA/DR) options your organization may already have in place.
Connecting to an external Postgres instance that is hosted within the same cluster is also supported! For example; your organization can have a multi-namespace/region deployment of Postgres within your cluster that connects to AE5 via the service name. Combining this with Persistent Storage (dynamic block) and Managed Persistence enables AE5 to rapidly move from any failing node via standard Kubernetes pod scheduling.
Connecting to external Postgres¶
The following databases are automatically created in your Postgres instance:
To connect to your external Postgres instance:
Create an AE5 account with read/write access and set the account’s password.
Open your
anaconda-enterprise-anaconda-platform.yml
file and edit the following section:Save your changes, then restart all pods:
Once the pods are in a running state, confirm all databases in Postgres have been created.
Note
If pods show a crashloop state, inspect the pod logs. The most common cause of a crashloop state is a misconfiguration.
Note
Openshift may require updating the environmental variables for the
anaconda-enterprise-ap-auth
deployment if theanaconda_auth
database is not created in Postgres.
The following environmental variables must be changed in the anaconda-enterprise-ap-auth
deployment:
Connecting to external Redis¶
To connect to your external redis instance:
Open your
anaconda-enterprise-anaconda-platform.yml
file and edit the following section:Save your changes, then restart all pods:
Note
Optionally, you can connect to rediss for TLS connection through port 6379.
You have successfully connected to your external Postgres redis! To verify your connection, create a new project and start a new session.