Skip to content
Agentmart
Submit a tool

homelab-databases

Provision MariaDB, PostgreSQL (CNPG), and Redis for homelab: single vs multi-node decision matrix, one-operator rule, backups mandatory, affinity notes.

Skill by giovannirco

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/giovannirco-homelab-databases

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Provision MariaDB, PostgreSQL (CNPG), and Redis for homelab: single vs multi-node decision matrix, one-operator rule, backups mandatory, affinity notes. Triggers: /homelab-databases, new MariaDB, new Postgres, CNPG, Galera, Redis Sentinel.

Use cases: backend, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/homelab-databases

What's inside

Skill name
homelab-databases
Description
Provision MariaDB, PostgreSQL (CNPG), and Redis for homelab: single vs multi-node decision matrix, one-operator rule, backups mandatory, affinity notes. Triggers: /homelab-databases, new MariaDB, new Postgres, CNPG, Galera, Redis Sentinel.
License
MIT
Instructions
62 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Homelab databases

## Hard rules

1. **One operator per engine** cluster-wide  
2. **Backups mandatory** even with replicas  
3. **No Galera on NFS**  
4. **Pin operator + image versions**  
5. Prefer **ClusterIP**; MetalLB only for real LAN clients  

## Decision matrix

| Need | MariaDB | Postgres (CNPG) | Redis |
|------|---------|-----------------|-------|
| Disposable cache | — | — | Single Deployment |
| Small app DB | Single MariaDB | instances: 1 | Single |
| Survive one node loss | Galera 2 + garbd | instances: 2 | replica + Sentinel |

## Operators (examples — pin current stable)

| Engine | Operator |
|--------|----------|
| MariaDB | mariadb-operator |
| Postgres | CloudNativePG |
| Redis | redis-operator or plain Deployment |

## Single CNPG sketch

```yaml
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
  name: app-postgres
  namespace: app
spec:
  imageName: ghcr.io/cloudnative-pg/postgresql:17
  instances: 1
  storage:
    size: 10Gi
  bootstrap:
    initdb:
      database: appdb
      owner: appuser
```

## Checklist

1. Pick matrix row  
2. Ensure single operator install  
3. Secrets OOB if needed  
4. GitOps manifests + affinity  
5. Backup CR / dump CronJob  
6. Wire app DSN to operator Service  
7. Smoke connect  

## Anti-patterns

- Second helm install of same operator  
- Skipping backups because “HA”  
- Exposing every DB on LAN LB

From giovannirco/agentic-homelab, MIT.

More from giovannirco/agentic-homelab

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Aug 3, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from giovannirco

Cite this page

homelab-databases skill. Agent Mart. https://agentmart.dev/skills/giovannirco-homelab-databases (last updated 2026-10-24)