The images for the EDB Postgres® AI for CloudNativePG™ Cluster operator, as well as various
operands, are kept in a private container image registry under
docker.enterprisedb.com.
Important
Access to the private registry requires an account with EDB and is reserved to EDB customers with a valid subscription plan. Credentials will be funneled through your EDB account.
Important
There is a bandwidth quota of 10GB/month per registry.
Note
When installing the operator and operands from the private registry, the license keys are not needed.
Repository information
Collect the following information:
- Your EDB account token
- The name of the repository, which will be
k8s - The repository server, which will be
docker.enterprisedb.com
For clarity, the following examples assume your token is in an environment variable named EDB_SUBSCRIPTION_TOKEN.
Example with docker login
You can log in via Docker from your terminal. In this context,
- The server is
docker.enterprisedb.com - The username is the repository,
k8s - The password is your EDB account token (stored in
$EDB_SUBSCRIPTION_TOKEN)
docker login docker.enterprisedb.com \ --username k8s \ --password "$EDB_SUBSCRIPTION_TOKEN"
WARNING! Using --password via the CLI is insecure. Use --password-stdin. Login Succeeded
Operand images
EDB Postgres® AI for CloudNativePG™ Cluster supports various PostgreSQL distributions that have images available from the same private registry:
- Community PostgreSQL
- EDB Postgres Advanced (EPAS)
- EDB Postgres Extended (PGE)
These images follow the requirements and the conventions described in the "Container image requirements" page of the EDB Postgres® AI for CloudNativePG™ Cluster documentation.
In the table below you can find the image name prefix for each Postgres distribution:
| Postgres distribution | Image name |
|---|---|
| Community PostgreSQL | postgresql |
| EDB Postgres Extended (PGE) | edb-postgres-extended |
| EDB Postgres Advanced (EPAS) | edb-postgres-advanced |
How to deploy clusters with EPAS or PGE operands
If you have already installed the EDB Postgres® AI for CloudNativePG™ Cluster operator from the private registry, you must have already set up an image pull secret. If you haven't, the next section may be of interest to you.
If you have an existing installation of the operator, in order to pull images
for EPAS or PGE from the private registry, you will need to create a
kubernetes.io/dockerconfigjson pull secret.
You can create a pull secret from credentials.
kubectl create secret docker-registry registry-pullsecret \ -n <CLUSTER-NAMESPACE> --docker-server=docker.enterprisedb.com \ --docker-username=k8s \ --docker-password="$EDB_SUBSCRIPTION_TOKEN"
As mentioned above, the docker-username is the name of your registry, i.e.
k8s. The docker-password is the token retrieved
from the EDB portal.
Once your pull secret is created, remember to set the imagePullSecrets field
in the cluster manifest in addition to the imageName.
The manifest below will create a cluster running PG Extended.