You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/deployment-self-hosting/hosting-guides/kubernetes-openshift.md
+20-1Lines changed: 20 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -343,7 +343,24 @@ api:
343
343
344
344
### PgBouncer
345
345
346
-
By default, Flagsmith connects directly to the database - either in-cluster or external. You can enable PgBouncer with `pgbouncer.enabled: true` to have Flagsmith connect to PgBouncer, and zPgBouncer connect to the database.
346
+
By default, Flagsmith connects directly to the database - either in-cluster or external. You can enable PgBouncer with `pgbouncer.enabled: true` to have Flagsmith connect to PgBouncer, and PgBouncer connect to the database.
347
+
348
+
If you use `databaseExternal.urlFromExistingSecret` to provide the database URL from a pre-existing Kubernetes secret, you must also provide PgBouncer's credentials via a separate existing secret using `pgbouncer.credentialsFromExistingSecret`. This is because Helm cannot read secret values at template time to parse the database URL into PgBouncer's required components.
349
+
350
+
```yaml
351
+
pgbouncer:
352
+
enabled: true
353
+
credentialsFromExistingSecret:
354
+
enabled: true
355
+
name: my-pgbouncer-credentials # must contain POSTGRESQL_HOST, POSTGRESQL_DATABASE, POSTGRESQL_USER, POSTGRESQL_PASSWORD
356
+
357
+
databaseExternal:
358
+
enabled: true
359
+
urlFromExistingSecret:
360
+
enabled: true
361
+
name: my-db-url-secret # DATABASE_URL pointing through PgBouncer
362
+
key: DATABASE_URL
363
+
```
347
364
348
365
### All-in-one Docker image
349
366
@@ -505,6 +522,8 @@ The following table lists the configurable parameters of the chart and their def
505
522
| `influxdbExternal.tokenFromExistingSecret.enabled` | Use reference to a k8s secret not managed by this chart | `false` |
506
523
| `influxdbExternal.tokenFromExistingSecret.name` | Referenced secret name | |
507
524
| `influxdbExternal.tokenFromExistingSecret.key` | Key within the referenced secret to use | |
525
+
| `pgbouncer.credentialsFromExistingSecret.enabled` | Use an existing secret for PgBouncer credentials instead of generating one. The secret must contain keys: `POSTGRESQL_HOST`, `POSTGRESQL_DATABASE`, `POSTGRESQL_USER`, `POSTGRESQL_PASSWORD`. | `false` |
526
+
| `pgbouncer.credentialsFromExistingSecret.name` | Name of the existing secret containing PgBouncer credentials. | |
0 commit comments