Add ability to configure extra args for postgres

* add default extra args postgres

* add postgres_extra_args option to readme
This commit is contained in:
chris93111
2021-10-10 16:00:06 +02:00
committed by Christian M. Adams
parent a2222a9176
commit 0f07a475b5
3 changed files with 10 additions and 0 deletions

View File

@@ -422,6 +422,9 @@ spec:
limits:
storage: 50Gi
postgres_storage_class: fast-ssd
postgres_extra_args:
- '-c'
- 'max_connections=1000'
```
**Note**: If `postgres_storage_class` is not defined, Postgres will store it's data on a volume using the default storage class for your cluster.

View File

@@ -362,6 +362,10 @@ spec:
postgres_data_path:
description: Path where the PostgreSQL data are located
type: string
postgres_extra_args:
type: array
items:
type: string
ca_trust_bundle:
description: Path where the trusted CA bundle is available
type: string

View File

@@ -41,6 +41,9 @@ spec:
- image: '{{ _postgres_image }}'
imagePullPolicy: '{{ image_pull_policy }}'
name: postgres
{% if postgres_extra_args %}
args: {{ postgres_extra_args }}
{% endif %}
env:
# For postgres_image based on rhel8/postgresql-12
- name: POSTGRESQL_DATABASE