Postgres k8s setup

From NaveedTechLab/skills-library · View interactive version

Postgres k8s setup is an AI agent skill from the GitHub repository NaveedTechLab/skills-library. Deploy PostgreSQL on Kubernetes, run migrations, and verify schemas. Use when Claude needs to set up PostgreSQL infrastructure on Kubernetes with proper migration execution and schema verification. Helm-based deployment with migration execution via scripts. Verification must return minimal output on

How to use this skill

Skill file

PostgreSQL Kubernetes Setup

This skill deploys PostgreSQL on Kubernetes using the Bitnami Helm chart, executes initial schema migrations, and verifies the database schema. It handles the full database bootstrap sequence — cluster deploy, migration run, schema check — and returns a compact pass/fail status to keep context usage low.

Use this skill at infrastructure setup time, or after a schema change that requires migration execution against a Kubernetes-hosted Postgres instance.

Quick Start

# Deploy Postgres and run migrations from migrations/ directory
/postgres-k8s-setup namespace=app-db migrations_dir=./migrations

# Expected output:
# PostgreSQL deployed in namespace app-db
# Migrations: 3 applied successfully
# Schema verified: Done

Key Features

Process

  1. Deploy PostgreSQL using Helm in a dedicated namespace
  2. Execute initial schema migrations via kubectl exec or a migration job
  3. Verify the database schema
  4. Return only success/failure status

When NOT to Use This Skill

Common Mistakes

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.