
Postmortem — The Postgres failover that taught me what PDB is
A load test with 50 users brought down the Postgres primary. What HPA, worker memory, and PDB have to do with it.
We use optional first-party traffic analytics to improve the blog. You can accept or decline — nothing is measured before you choose.
Tag
Articles with this tag.

A load test with 50 users brought down the Postgres primary. What HPA, worker memory, and PDB have to do with it.

The new image went up, the build passed and the rollout failed. The culprit: a default credential that the production guard rejected — and an impossible rollback.

A practical path to understand, set up, and operate a Kubernetes cluster — from the first pod to Postgres failover.

RPO, RTO and real drills: disaster scenarios, runbook, measured restore and the capstone that closes the course with a cluster that recovers.

What to promise, how to measure, and what to do when errors exceed: SLI, SLO, error budget, alerts that wake someone up, and postmortem without witch hunts.

Load testing that measures what matters: p95, error rate, and the exact point where the database — not the CPU — becomes the bottleneck.

True least privilege: per-app ServiceAccounts, RBAC without cluster-admin, Pod Security Admission, default-deny NetworkPolicy, and secrets outside Git.

Pipeline that builds once, promotes by digest, signs the image and delivers SBOM: traceability from commit to pod.

Readiness, liveness, startup, maxSurge, maxUnavailable, PDB and HPA: what really decides whether the user sees errors during deployment.

Git as source of truth: Application, syncPolicy, self-heal, prune, and what to do when the cluster and the repository disagree.

Charts, values, templating, and hooks: how to move away from kubectl apply -f and version the application deployment as a real package.

Drain, PDB, anti-affinity, and quorum: how to increase RAM, update kubelet, or replace a node without bringing down the cluster — one node at a time.