Deploy External PostgreSQL for Insight

JFrog Installation & Setup Documentation

Content Type
Installation & Setup
ft:sourceType
Paligo

There are cases where you want to use an external PostgreSQL and not the enclosed PostgreSQL. For more information, see Creating the Insight PostgreSQL Database.

Pass the following parameters to the install command.

...
--set postgresql.enabled=false \
--set database.url=${DB_URL} \
--set database.user=${DB_USER} \
--set database.password=${DB_PASSWORD} \
...

Note

You must set postgresql.enabled=false for the chart to use the database.* parameters. Without it, they will be ignored.

Use Existing Secrets for PostgreSQL Connection Details

You can use existing secrets for managing the database connection details. Pass them to the install command with the following parameters.

export POSTGRES_USERNAME_SECRET_NAME=
export POSTGRES_USERNAME_SECRET_KEY=
export POSTGRES_PASSWORD_SECRET_NAME=
export POSTGRES_PASSWORD_SECRET_KEY=
...
    --set database.secrets.user.name=${POSTGRES_USERNAME_SECRET_NAME} \
    --set database.secrets.user.key=${POSTGRES_USERNAME_SECRET_KEY} \
    --set database.secrets.password.name=${POSTGRES_PASSWORD_SECRET_NAME} \
    --set database.secrets.password.key=${POSTGRES_PASSWORD_SECRET_KEY} \
...