Skip to content

feat(blog): add managed PostgreSQL with synchronous replication post#497

Merged
tym83 merged 1 commit intomainfrom
blog/managed-postgresql-sync-replication
Apr 17, 2026
Merged

feat(blog): add managed PostgreSQL with synchronous replication post#497
tym83 merged 1 commit intomainfrom
blog/managed-postgresql-sync-replication

Conversation

@tym83
Copy link
Copy Markdown
Contributor

@tym83 tym83 commented Apr 17, 2026

Summary

Adds a how-to blog post covering deployment of managed PostgreSQL on Cozystack.

What

  • New page bundle at content/en/blog/2026-04-17-managed-postgresql-synchronous-replication/
  • Walkthrough of deploying Postgres via the Dashboard Marketplace and via kubectl/HelmRelease
  • Covers replicas (2 async, 3 with quorum-based synchronous replication), resourcesPreset, storage sizing, connection credentials retrieval, and S3-compatible backups
  • Three screenshots (Marketplace, deployment form, Ready state) embedded via {{< figure >}} shortcode with a fixed 720px width so they do not stretch across the full content column

Why

Give operators a concise, self-contained entry point for standing up production-grade PostgreSQL with automatic failover on Cozystack, without wading through the full managed apps reference docs. Complements the existing PostgreSQL reference under /docs/v1/applications/postgres/.

Preview

Netlify deploy preview will render the post under /blog/2026/04/managed-postgresql-synchronous-replication-without-the-ops-headache/.

Summary by CodeRabbit

  • Documentation
    • Added a new blog post covering managed PostgreSQL deployment with optional synchronous replication, featuring step-by-step Dashboard instructions, GitOps-based kubectl deployment workflows, configurable replica counts and resource settings, and S3-compatible backup configuration.

Introduce a how-to blog post covering deployment of managed PostgreSQL
on Cozystack via Dashboard and kubectl, with screenshots of the
Marketplace, deployment form, and ready state.

Signed-off-by: tym83 <6355522@gmail.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 17, 2026

Deploy Preview for cozystack ready!

Name Link
🔨 Latest commit 06c07fe
🔍 Latest deploy log https://app.netlify.com/projects/cozystack/deploys/69e2231e08a92a0008283d3c
😎 Deploy Preview https://deploy-preview-497--cozystack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 17, 2026

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

A new blog post was added documenting the deployment of managed PostgreSQL with optional synchronous replication using Cozystack and CloudNativePG. The post provides step-by-step deployment instructions via both the dashboard UI and kubectl/GitOps approaches, including configuration examples and command references.

Changes

Cohort / File(s) Summary
Blog Post
content/en/blog/2026-04-17-managed-postgresql-synchronous-replication/index.md
New documentation covering managed PostgreSQL deployment with synchronous replication, including dashboard UI and kubectl/GitOps workflows with configuration examples, commands, and backup enablement guidance.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Poem

🐰 A database tale, replicated with care,
With CloudNativePG beyond compare,
Cozystack's magic makes failover fair,
Synchronous streams through the network air,
Your PostgreSQL shines everywhere!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: adding a blog post about managed PostgreSQL with synchronous replication on Cozystack. It is concise, specific, and clearly reflects the primary addition to the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch blog/managed-postgresql-sync-replication

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@tym83 tym83 marked this pull request as ready for review April 17, 2026 12:10
@tym83 tym83 requested review from kvaps and lllamnyp as code owners April 17, 2026 12:10
Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization's overage spend limit has been reached.

Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit at claude.ai/admin-settings/claude-code.

Once credits are available, reopen this pull request to trigger a review.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new blog post about deploying managed PostgreSQL with synchronous replication using Cozystack. The guide covers deployment via the dashboard and a GitOps-based approach using FluxCD. Feedback was provided to correct an invalid reconciliation interval in the HelmRelease example and to discourage hardcoding passwords in the manifest to promote better security practices.

name: cozystack-apps
namespace: cozy-public
version: 0.10.0
interval: 0s # Reconcile only on spec change, not periodically
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

In FluxCD, the spec.interval field for a HelmRelease must be a positive duration (e.g., 1m, 10m, 1h). A value of 0s is invalid and will cause the reconciliation to fail with a validation error. If the intention is to minimize periodic reconciliation, use a longer interval such as 1h.

Suggested change
interval: 0s # Reconcile only on spec change, not periodically
interval: 1h # Reconcile periodically and on spec change

- appuser
users:
appuser:
password: "your-strong-password" # or omit this line to auto-generate
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-medium medium

Hardcoding passwords in a GitOps manifest is a security risk. Since the comment mentions that it can be omitted for auto-generation, it is better to show that as the primary example to encourage best practices.

Suggested change
password: "your-strong-password" # or omit this line to auto-generate
# password: "your-strong-password" # Omit to auto-generate

@tym83 tym83 merged commit 6f507de into main Apr 17, 2026
5 of 6 checks passed
@tym83 tym83 deleted the blog/managed-postgresql-sync-replication branch April 17, 2026 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant