Skip to content

Commit b780869

Browse files
committed
Add extraArgs to postgres helm chart
1 parent 34b7d4f commit b780869

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

cluster/helm/splice-postgres/templates/postgres.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,14 @@ spec:
3838
- name: {{ .Release.Name }}
3939
image: postgres:14
4040
imagePullPolicy: IfNotPresent
41-
args: ["-c", "max_connections={{ .Values.db.maxConnections }}", "-c", "max_wal_size={{ .Values.db.maxWalSize }}"]
41+
args:
42+
- "-c"
43+
- "max_connections={{ .Values.db.maxConnections }}"
44+
- "-c"
45+
- "max_wal_size={{ .Values.db.maxWalSize }}"
46+
{{- with .Values.extraArgs }}
47+
{{- toYaml . | nindent 10 }}
48+
{{- end }}
4249
env:
4350
- name: POSTGRES_PASSWORD
4451
valueFrom:

cluster/helm/splice-postgres/values-template.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ db:
2121
maxConnections: 300
2222
maxWalSize: 2GB
2323

24+
# Extra PostgreSQL command-line arguments (optional)
25+
# extraArgs:
26+
# - "-c"
27+
# - "shared_buffers=256MB"
28+
# - "-c"
29+
# - "wal_buffers=-1"
30+
2431
persistence:
2532
secretName: "postgres-secrets"
2633
# k8s affinity for all deployed pods (optional)

0 commit comments

Comments
 (0)