postgre-skill

A skill for generating standardized PostgreSQL Kubernetes manifests. It produces a StatefulSet named 'postgre' with hostNetwork enabled, a headless service named 'postgre-headless', and a secret 'postgre-secret' with a randomly generated password. It automatically detects and uses the cluster's StorageClass if available, otherwise it falls back to a manual PersistentVolume. It includes logic to handle PostgreSQL 18+ data directory changes. Make sure to use this skill whenever the user mentions postgre or standardized db setup.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "postgre-skill" with this command: npx skills add cooloo9871/my-awesome-skill/cooloo9871-my-awesome-skill-postgre-skill

PostgreSQL Kubernetes Standard Skill

This skill generates a complete set of Kubernetes manifests for a PostgreSQL deployment, following strict naming and network requirements.

Specifications

  • Name Requirement: StatefulSet MUST be named postgre.
  • Network Requirement: hostNetwork: true MUST be set in the Pod spec.
  • Service Requirement: A headless service named postgre-headless MUST be created.
  • Secret Requirement: A secret named postgre-secret MUST be created with a random POSTGRES_PASSWORD.
  • Storage Requirement: PV/PVC MUST be managed via volumeClaimTemplates in the StatefulSet.
    • If a StorageClass exists in the cluster, it will be used.
    • If NO StorageClass is available, a manual PersistentVolume (PV) of the requested size MUST be included as a fallback for the generated PVC (postgre-data-postgre-0).
  • Data Directory (Mount Path):
    • For PostgreSQL 17 and below: /var/lib/postgresql/data
    • For PostgreSQL 18+ and latest: /var/lib/postgresql
    • The generator handles this logic automatically based on the image version.
  • Namespace: Default to postgre.

Implementation Guide

When triggered:

  1. Determine if the user has custom storage size or image preferences (Default: 100Gi, Image: postgres:16).
  2. Execute the generator: python ~/.agents/skills/postgre-skill/scripts/generate.py [storage] [image] [namespace].
  3. Provide the output YAML to the user.

Example Request

User: "幫我產生一個標準的 postgre 部署設定" Result: Displays the YAML with postgre Secret, Service, and StatefulSet with hostNetwork and version-aware storage configuration.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

mysql-skill

No summary provided by upstream source.

Repository SourceNeeds Review
General

bobo-skill

No summary provided by upstream source.

Repository SourceNeeds Review
General

test_skill

import json import tkinter as tk from tkinter import messagebox, simpledialog

Archived SourceRecently Updated
General

neo

Browse websites, read web pages, interact with web apps, call website APIs, and automate web tasks. Use Neo when: user asks to check a website, read a web page, post on social media (Twitter/X), interact with any web app, look up information on a specific site, scrape data from websites, automate browser tasks, or when you need to call any website's API. Keywords: website, web page, browse, URL, http, API, twitter, tweet, post, scrape, web app, open site, check site, read page, social media, online service.

Archived SourceRecently Updated