PostgreSQL Installation with Helm: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=External= | =External= | ||
* https://github.com/helm/charts/tree/master/stable | * https://artifacthub.io/packages/helm/bitnami/postgresql | ||
* https://github.com/bitnami/charts/tree/master/bitnami/postgresql ← https://github.com/helm/charts/tree/master/stable/postgresql | |||
* https://github.com/bitnami/bitnami-docker-postgresql | * https://github.com/bitnami/bitnami-docker-postgresql | ||
* https://hub.docker.com/r/bitnami/postgresql/ | |||
=Internal= | =Internal= | ||
Line 11: | Line 13: | ||
=Overview= | =Overview= | ||
This document refers to the chart | This document refers to the chart documented here: https://artifacthub.io/packages/helm/bitnami/postgresql. | ||
<syntaxhighlight lang='bash'> | |||
helm repo add bitnami https://charts.bitnami.com/bitnami | |||
helm install my-release bitnami/postgresql | |||
</syntaxhighlight> | |||
=Procedure= | |||
=Configuration= | |||
==Setting a Non-Default Master User== | |||
The default [[PostgreSQL_Concepts#Master_User|master user]] is "postgres" and setting the password for it can be achieved with: | |||
<syntaxhighlight lang='yaml'> | |||
postgresqlPassword: 'something' | |||
</syntaxhighlight> | |||
The name of the master user can be changed with: | |||
<syntaxhighlight lang='yaml'> | |||
postgresqlUsername: 'someotheruser' # 'postgres' is the default | |||
</syntaxhighlight> | |||
If 'postgresqlUsername' is used, then 'postgres' remains passwordless, and cannot be used. To also use 'postgres', set the password with 'postgresqlPostgresPassword'. For more details: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#creating-a-database-user-on-first-run. | |||
==Dependent Chart values.yaml== | |||
The default [[PostgreSQL_Concepts#Master_User|master user]] is "postgres" and setting the password for it can be achieved with: | |||
<syntaxhighlight lang='yaml'> | |||
postgresql: | |||
postgresqlUsername: 'postgres' # this is the default | |||
postgresqlPassword: 'something' | |||
</syntaxhighlight> |
Latest revision as of 05:41, 20 December 2020
External
- https://artifacthub.io/packages/helm/bitnami/postgresql
- https://github.com/bitnami/charts/tree/master/bitnami/postgresql ← https://github.com/helm/charts/tree/master/stable/postgresql
- https://github.com/bitnami/bitnami-docker-postgresql
- https://hub.docker.com/r/bitnami/postgresql/
Internal
Overview
This document refers to the chart documented here: https://artifacthub.io/packages/helm/bitnami/postgresql.
helm repo add bitnami https://charts.bitnami.com/bitnami
helm install my-release bitnami/postgresql
Procedure
Configuration
Setting a Non-Default Master User
The default master user is "postgres" and setting the password for it can be achieved with:
postgresqlPassword: 'something'
The name of the master user can be changed with:
postgresqlUsername: 'someotheruser' # 'postgres' is the default
If 'postgresqlUsername' is used, then 'postgres' remains passwordless, and cannot be used. To also use 'postgres', set the password with 'postgresqlPostgresPassword'. For more details: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#creating-a-database-user-on-first-run.
Dependent Chart values.yaml
The default master user is "postgres" and setting the password for it can be achieved with:
postgresql:
postgresqlUsername: 'postgres' # this is the default
postgresqlPassword: 'something'