Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: add ability to change selected PostgresqL parameters in the Values fo… #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions devstats-helm-example/templates/devstats-postgres-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,17 @@ spec:
value: '0.0.0.0:5432'
- name: PATRONI_RESTAPI_LISTEN
value: '0.0.0.0:8008'
- name: PATRONI_POSTGRES_BUFFERS
value: '{{ .Values.postgresConfBuffers }}'
- name: PATRONI_POSTGRES_MAX_PARALLEL
value: '{{ .Values.postgresConfParallel }}'
- name: PATRONI_POSTGRES_MAX_WORKERS
value: '{{ .Values.postgresConfWorkers }}'
- name: PATRONI_POSTGRES_WORK_MEM
value: '{{ .Values.postgresConfWorkMem }}'
- name: PATRONI_POSTGRES_WAL_BUFFERS
value: '{{ .Values.postgresConfWalBuff }}'

terminationGracePeriodSeconds: 0
nodeSelector:
{{- with .Values.dbNodeSelector -}}
Expand Down
5 changes: 5 additions & 0 deletions devstats-helm-example/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ projectsFile: 'example/projects.yaml'
provisionCommand: './example/deploy_all.sh'
provisionPodName: devstats-provision
provisionRestartPolicy: Never
postgresConfBuffers: '512MB'
postgresConfMem: '64MB'
postgresConfMaxParallel: '2'
postgresConfMaxWorkers: '16'
postgresConfWalBuffers: '64MB'
postgresSvcName: 'devstats-postgres'
postgresImageName: 'lukaszgryglicki/devstats-patroni'
postgresStorageSize: '100Gi'
Expand Down