From 59c270b0a5c22e93927b96de5d36376567b034bb Mon Sep 17 00:00:00 2001 From: Tunahan Cicek Date: Mon, 5 Aug 2024 14:02:10 +0200 Subject: [PATCH] Add topic postgresql extension. --- INSTALL.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index d6b5b394..d8ff675c 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -54,14 +54,22 @@ The Helm Chart can be configured using the following parameters (incomplete list | `registry.externalSubjectIdWildcardAllowedTypes` | List of allowed types that can be made visible to everyone. | `manufacturerPartId,assetLifecyclePhase` | ### PostgreSQL -| Parameter | Description | Default value | -| --- | --- | --- | -| `postgresql.primary.persistence.size` | Size of the `PersistentVolume` that persists the data | `50Gi` | -| `postgresql.auth.username` | Username that is used to authenticate at the database | `catenax` | -| `postgresql.auth.password` | Password for authentication at the database | `TFLIykCd4rUvSjbs` | -| `postgresql.auth.database` | Database name | `registry` | +| Parameter | Description | Default value | +| --- |-------------------------------------------------------------------------------------------------------------------------------|--------------------| +| `postgresql.primary.persistence.size` | Size of the `PersistentVolume` that persists the data | `50Gi` | +| `postgresql.auth.username` | Username that is used to authenticate at the database | `default-user` | +| `postgresql.auth.password` | Password for authentication at the database. If password is empty, the postgres pw will be generated random via postgres-init | `` | +| `postgresql.auth.database` | Database name | `default-database` | ### Prerequisites - Kubernetes 1.19+ - Helm 3.2.0+ - PV provisioner support in the underlying infrastructure + +### Required postgresql extensions +The application requires the following postgresql-extensions to be installed in the postgres database: + +| PostgreSQL Extension | Description | +|----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| uuid-ossp | Via Liquibase scripts, the uuid-ossp extension will be created if it does not exist. See [liquibase-script](https://github.com/eclipse-tractusx/sldt-digital-twin-registry/blob/main/backend/src/main/resources/db/changelog/db.changelog-extensions.yaml).
In case of using Azure Database for PostgreSQL, the extension needs to be manually activated.
More details can be found at [PostgreSQL extensions in Azure Database for PostgreSQL - Flexible Server](https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-extensions) | +