Gitlab helm chart always fails to install with database errors

Trying from 2 months. Unable to install gitlab helm chart on kubernetes clusters. Tried on 3 different kubernetes clusters. characteristics of our clusters

  • On prem
  • baremetal
  • Created and managed by Rancher 2.x
  • NFS as default storage class
  • Metallb with available IP addresses for charts to consume.

First and most prominante problem: External postgresql never connects and internal postgresql always fails with following error.

Let us for not talk only about all internal stuff with only mandatory parameters.

certmanager-issuer.email   =  memail@mycompany.com
global.edition=ce 
kubectl -n gitlab logs gitlab-postgresql-0 -c init-chmod-data
chown: changing ownership of '/bitnami/postgresql/data': Operation not permitted
chown: changing ownership of '/bitnami/postgresql': Operation not permitted
chown: changing ownership of '/bitnami/postgresql/data': Operation not permitted
kubectl -n gitlab logs gitlab-postgresql-0 -c metrics
time="2020-04-03T19:51:10Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:51:11Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:51:13Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:51:16Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T19:51:16Z" level=info msg="Starting Server: :9187" source="postgres_exporter.go:1576"
time="2020-04-03T19:51:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:51:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:51:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:51:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T19:52:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:52:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:52:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:52:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T19:53:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:53:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:53:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:53:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T19:54:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:54:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:54:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:54:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T19:55:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:55:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:55:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:55:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T19:56:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:56:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:56:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:56:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T19:57:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:57:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:57:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:57:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T19:58:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:58:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:58:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:58:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T19:59:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:59:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:59:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T19:59:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T20:00:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:00:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:00:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:00:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T20:01:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:01:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:01:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:01:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T20:02:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:02:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:02:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:02:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T20:03:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:03:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:03:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:03:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T20:04:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:04:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:04:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:04:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T20:05:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:05:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:05:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:05:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T20:06:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:06:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:06:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:06:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T20:07:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:07:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:07:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:07:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T20:08:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:08:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:08:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:08:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T20:09:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:09:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:09:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:09:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T20:10:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:10:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:10:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:10:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T20:11:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:11:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:11:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:11:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T20:12:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:12:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:12:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:12:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T20:13:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:13:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:13:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:13:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T20:14:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:14:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:14:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:14:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T20:15:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:15:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:15:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:15:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T20:16:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:16:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:16:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:16:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T20:17:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:17:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:17:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:17:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T20:18:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:18:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:18:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:18:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T20:19:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:19:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:19:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:19:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T20:20:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:20:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:20:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:20:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"
time="2020-04-03T20:21:52Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:21:53Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:21:55Z" level=info msg="Established new database connection to \"127.0.0.1:5432\"." source="postgres_exporter.go:814"
time="2020-04-03T20:21:58Z" level=error msg="Error opening connection to database (postgresql://gitlab:PASSWORD_REMOVED@127.0.0.1:5432/gitlabhq_production?sslmode=disable): dial tcp 127.0.0.1:5432: connect: connection refused" source="postgres_exporter.go:1403"

It looks like the bitnami postgresql db that you are using is not able to set permissions or something. We have a bitnami/postgresql chart deployed and working and I wish instead of you asking us to use "unencoded" (I know coded, encoded, decoded, unecrypted but do not know what is unencoded). Your example secret creation [https://docs.gitlab.com/charts/installation/secrets.html#postgresql-password] is very confusing since it creates two passwords but the section of the documentation about external database uses only one of those keys [https://docs.gitlab.com/charts/advanced/external-db/#configuring-gitlab-to-use-an-external-database] I would rather copy paste a connection string of the existing postgresql or directly copy paste, username, password, host and you at the backend go ahead and create the secret in whichever format (unencoded - i am still confused) you want and use it.

Edited by Gajendra D Ambi