mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-07 13:52:58 +00:00
Merge pull request #753 from rooftopcellist/pg-extra-config
Add ability to configure extra args for postgres
This commit is contained in:
@@ -422,6 +422,9 @@ spec:
|
|||||||
limits:
|
limits:
|
||||||
storage: 50Gi
|
storage: 50Gi
|
||||||
postgres_storage_class: fast-ssd
|
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.
|
**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.
|
||||||
|
|||||||
@@ -362,6 +362,10 @@ spec:
|
|||||||
postgres_data_path:
|
postgres_data_path:
|
||||||
description: Path where the PostgreSQL data are located
|
description: Path where the PostgreSQL data are located
|
||||||
type: string
|
type: string
|
||||||
|
postgres_extra_args:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
ca_trust_bundle:
|
ca_trust_bundle:
|
||||||
description: Path where the trusted CA bundle is available
|
description: Path where the trusted CA bundle is available
|
||||||
type: string
|
type: string
|
||||||
|
|||||||
@@ -215,6 +215,9 @@ projects_persistence: false
|
|||||||
# Define an existing PersistentVolumeClaim to use
|
# Define an existing PersistentVolumeClaim to use
|
||||||
projects_existing_claim: ''
|
projects_existing_claim: ''
|
||||||
#
|
#
|
||||||
|
# Define postgres configuration arguments to use
|
||||||
|
postgres_extra_args: ''
|
||||||
|
|
||||||
# Define the storage_class, size and access_mode
|
# Define the storage_class, size and access_mode
|
||||||
# when not using an existing claim
|
# when not using an existing claim
|
||||||
projects_storage_size: 8Gi
|
projects_storage_size: 8Gi
|
||||||
|
|||||||
@@ -41,6 +41,9 @@ spec:
|
|||||||
- image: '{{ _postgres_image }}'
|
- image: '{{ _postgres_image }}'
|
||||||
imagePullPolicy: '{{ image_pull_policy }}'
|
imagePullPolicy: '{{ image_pull_policy }}'
|
||||||
name: postgres
|
name: postgres
|
||||||
|
{% if postgres_extra_args %}
|
||||||
|
args: {{ postgres_extra_args }}
|
||||||
|
{% endif %}
|
||||||
env:
|
env:
|
||||||
# For postgres_image based on rhel8/postgresql-12
|
# For postgres_image based on rhel8/postgresql-12
|
||||||
- name: POSTGRESQL_DATABASE
|
- name: POSTGRESQL_DATABASE
|
||||||
|
|||||||
Reference in New Issue
Block a user