Skip to content

Add PostgreSQL Kubernetes example manifests - #30

Merged
surrealwolf merged 2 commits into
mainfrom
feat/add-postgresql-k8s-example
Jan 12, 2026
Merged

surrealwolf merged 2 commits into
mainfrom
feat/add-postgresql-k8s-example

Conversation

@surrealwolf

Copy link
Copy Markdown
Collaborator

Summary

Adds example Kubernetes manifests for deploying PostgreSQL using CloudNativePG operator.

Changes

New Files

  • ✅ k8s/postgres-credentials-example.yaml - Secret creation example with instructions
  • ✅ k8s/postgres-cluster-example.yaml - 3-node PostgreSQL cluster configuration
  • ✅ k8s/postgres-database-example.yaml - Database resource example
  • ✅ k8s/postgres-pooler-example.yaml - PgBouncer connection pooler example

Features

  • All examples include clear documentation
  • Prerequisites and deployment instructions
  • Connection string examples
  • Resource sizing and configuration examples

Prerequisites

  • CloudNativePG operator installed in cluster
  • Storage class available (default: truenas-nfs)

Deployment Order

  1. Create credentials secret
  2. Deploy PostgreSQL cluster
  3. (Optional) Deploy database resource
  4. (Optional) Deploy connection pooler

- Add postgres-credentials-example.yaml with secret creation instructions
- Add postgres-cluster-example.yaml for 3-node PostgreSQL cluster
- Add postgres-database-example.yaml for database management
- Add postgres-pooler-example.yaml for PgBouncer connection pooling

All examples include:
- Clear documentation and prerequisites
- Deployment instructions
- Connection string examples
- Add postgres-cluster-example.yaml for 3-node PostgreSQL cluster
- Add postgres-database-example.yaml for database management
- Add postgres-pooler-example.yaml for PgBouncer connection pooling

All examples include clear documentation, prerequisites, and deployment instructions
@surrealwolf
surrealwolf force-pushed the feat/add-postgresql-k8s-example branch from 39348b5 to ba1b492 Compare January 12, 2026 07:00
@surrealwolf
surrealwolf merged commit d8e3923 into main Jan 12, 2026
8 checks passed
@surrealwolf
surrealwolf deleted the feat/add-postgresql-k8s-example branch January 12, 2026 07:04
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