k8s-databases
K8s Databases
Percona Operators for PostgreSQL and MongoDB. (Updated: January 2026). All deployments are idempotent - operators reconcile to desired state.
Percona Operators
| Operator | Version | Database |
|---|---|---|
| Percona PostgreSQL | v2.8.2 | PostgreSQL 18.x |
| Percona Server MongoDB | v1.21.2 | MongoDB 8.0.x |
Always use latest versions. Operators include built-in backup, monitoring, and HA management.
Deployment Tiers
| Tier | PostgreSQL | MongoDB | HA |
|---|---|---|---|
| minimal/small | 1 replica | 1 replica | No |
| medium/production | 3 replicas + PgBouncer | 3 replicas (ReplicaSet) | Yes |
Installation
See references/postgresql.md and references/mongodb.md for deployment.
Get Connections
# PostgreSQL
kubectl get secret myapp-pg-pguser-myapp -n databases \
-o jsonpath='{.data.uri}' | base64 -d
# MongoDB
kubectl get secret myapp-mongo-secrets -n databases \
-o jsonpath='{.data.MONGODB_DATABASE_ADMIN_URI}' | base64 -d
Reference Files
- references/postgresql.md - PostgreSQL HA cluster
- references/postgresql-single.md - PostgreSQL single instance
- references/mongodb.md - MongoDB ReplicaSet
- references/backups.md - Backup with MinIO
- references/monitoring.md - Metrics and alerting
More from nmime/infra-skills
skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
11minio-storage
MinIO S3-compatible object storage on Kubernetes. Use when deploying MinIO, configuring buckets, setting up integrations with GitLab/Loki/backups, or managing S3-compatible storage infrastructure.
7hetzner-infra
Hetzner cloud infrastructure provisioning for Kubernetes. Use when provisioning servers, networks, load balancers, firewalls, DNS zones, or storage on Hetzner Cloud via hcloud CLI.
6k8s-secrets
Vault + External Secrets Operator for secrets management.
6k8s-autoscaling
KEDA event-driven autoscaling for Kubernetes. Use when installing KEDA, configuring scalers (Prometheus, RabbitMQ, Kafka, etc.), setting up HPA, or implementing autoscaling best practices.
6k8s-cluster-management
Kubernetes cluster installation via Kubespray. Always use Kubespray for cluster provisioning. Includes core addons (Cilium, Gateway API, cert-manager, LoadBalancer). Multi-cloud support.
6