ARTIFACTORY: How to use pass db credentials with secret for bundled PostgreSQL DB in aritfactory helm chart

ARTIFACTORY: How to use pass db credentials with secret for bundled PostgreSQL DB in aritfactory helm chart

AuthorFullName__c
Paul Pan
articleNumber
000005732
FirstPublishedDate
2023-05-21T11:24:16Z
lastModifiedDate
2025-05-21

When installing Artifactory with our artifactory/artifactory-ha chart, you can choose to deploy a bundled postgresql database ( It is enabled by default unless you turn it off. For production grade installations it is recommended to use an external PostgreSQL instead ), in order to bootstrap with your own database credentials, you need to modify the following in the values.yaml

postgresql:
  enabled: true
  postgresqlUsername: artifactory
  postgresqlPassword: ""

To avoid passing explicit credentials in values.yaml, you can pass the credentials with an existing secret:
postgresql:
  enabled: true
  postgresqlPassword:
    existingSecret: secretName

The secret should have the following:

postgresql-password                     ( needed )
postgresql-replication-password   ( needed if postgresql.replication is enabled )
postgresql-ldap-password             ( needed if postgresql.ldap is enabled )
postgresql-postgres-password      ( needed if postgresql.username is not postgres)