fix(infra): pin MongoDB to 8.0 LTS to avoid ARM64 segfault

mongo:8 resolves to 8.2 which uses tcmalloc-google. That allocator
segfaults (exit 139) when transparent hugepages are disabled, which is
the default on Hetzner kernels. MongoDB 8.0 LTS uses jemalloc and does
not have this issue.

PVC must be deleted before applying since FCV 8.2 data files can't be
opened by 8.0. Finance API seeds admin on startup so no data is lost.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Gonçalo Rodrigues 2026-06-26 22:25:25 +01:00
parent 81e804206d
commit 8d824b3e19

View File

@ -76,7 +76,7 @@ resource "kubernetes_stateful_set" "mongodb" {
spec {
container {
name = "mongodb"
image = "mongo:8"
image = "mongo:8.0"
env {
name = "MONGO_INITDB_ROOT_USERNAME"