The external DB distribution is a package ready to be deployed in any Kubernetes cluster with available persistent volumes along with an external Postgres instance.
To configure this distribution you can follow the full-package distribution paying special attention to the database configuration section.
This distribution does not include a database server so you have to provide your DB instance details.
Due to some Kustomize limitation you will have to modify more than a couple of lines in a file to successfully customize database parameters.
You will need to find and replace DB parameters across multiple files:
%YOUR_DB_PORT% in the following files:
examples/full-harbor/kustomization.yaml examples/full-harbor/secrets/clair/config.yaml examples/full-harbor/secrets/notary/server.json examples/full-harbor/secrets/notary/signer.json
Note that you will find these placeholders more than once per file
Replace placeholders with your values to use your external DB.
The DB instance has to have four different databases already created:
- clair: Used to store vulnerabilities data.
- notaryserver: Notary used it to store server data.
- notarysigner: Notary used to store image signature data.
- registry: The core component uses it to save container image data.
TIP: Take a look to the default DB schemas created in the embedded DB instance used in the full-package distribution
Was this page helpful?
Glad to hear it! Thanks for letting us know!
Sorry to hear that. Please tell us how we can improve.