Skip to content

Commit 0cbf8f1

Browse files
Merge pull request #159 from trakrf/fix/preview-db-storage-20gi
fix(db): bump preview CNPG storage 10Gi→20Gi (reconcile live patch)
2 parents adb819c + 7aa2a82 commit 0cbf8f1

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

argocd/root/templates/trakrf-db.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
{{- $dc := $cfg.dbCluster }}
2323
{{- if $dc.enabled }}
2424
{{- $ignore := printf "- group: postgresql.cnpg.io\n kind: Cluster\n name: %s\n managedFieldsManagers:\n - manager\n" $dc.fullnameOverride }}
25-
{{- $values := printf "fullnameOverride: %s\nstorage:\n createRetainClass: %t\nbackups:\n bucket: %q\n gcpServiceAccountEmail: %q\n" $dc.fullnameOverride $dc.createRetainClass $.Values.cnpgBackupBucket $.Values.cnpgBackupsGcpServiceAccountEmail }}
25+
{{- $values := printf "fullnameOverride: %s\nstorage:\n createRetainClass: %t\n" $dc.fullnameOverride $dc.createRetainClass }}
26+
{{- if $dc.storageSize }}
27+
{{- $values = printf "%s size: %q\n" $values $dc.storageSize }}
28+
{{- end }}
29+
{{- $values = printf "%sbackups:\n bucket: %q\n gcpServiceAccountEmail: %q\n" $values $.Values.cnpgBackupBucket $.Values.cnpgBackupsGcpServiceAccountEmail }}
2630
{{- if and $dc.externalIp (eq $.Values.cluster "gke") }}
2731
{{- $values = printf "%sexternalPreview:\n enabled: true\n loadBalancerIP: %q\n sourceRanges:\n - %q\n" $values $dc.externalIp $.Values.breakglassSourceCidr }}
2832
{{- end }}

argocd/root/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@ envs:
9999
namespace: trakrf-preview
100100
createRetainClass: true
101101
externalIp: ""
102+
# Bumped 10Gi→20Gi 2026-06-20: preview's single data+WAL volume filled
103+
# (CNPG "no free disk space for WALs" → Postgres refused to start →
104+
# backend 0/1 → app.preview.trakrf.id served 503). Live-patched the
105+
# Cluster CR + PVC to 20Gi to restore service; this reconciles git to
106+
# match. Preview fills from e2e/Playwright churn (TRA ticket for periodic
107+
# prune); 20Gi is headroom, not a permanent answer. Omitted on prod, which
108+
# keeps the chart's 10Gi default.
109+
storageSize: 20Gi
102110
prod:
103111
dbHost: trakrf-db-prod-rw.trakrf-prod
104112
ingressEnabled: true

0 commit comments

Comments
 (0)