← ClaudeAtlas

util-preparek8senvlisted

Prepare Kubernetes environment infrastructure by generating K8s manifests for all 3rd party supporting applications for a single target environment defined in CLAUDE.md. Creates/updates ENVIRONMENT.md with per-environment configs and credentials, then generates persistent StatefulSet-based K8s manifests for each 3rd party application (databases, message queues, caches, SSO, API gateways, etc.) directly in the `environment/` folder. Since the `environment/` folder is gitignored, each machine maintains its own independent copy. Ensures all services are remotely accessible using tools from DEVTOOL.md. Trigger on keywords: "prepare k8s environment", "prepare kubernetes", "setup k8s infra", "generate k8s manifests for 3rd party", "prepare environment", "setup infrastructure", "prepare k8s", "init k8s environment", "scaffold k8s environment". Accepts an optional environment argument to select which Kubernetes environment to generate for.
rashidee/co2-skills · ★ 3 · DevOps & Infrastructure · score 77
Install: claude install-skill rashidee/co2-skills
# Util Prepare K8s Environment Prepare Kubernetes infrastructure by generating K8s manifests for all 3rd party supporting applications for a **single target environment**. Manifests are generated directly in the `environment/` folder (no per-environment subfolders). Since the `environment/` folder is gitignored, each machine maintains its own independent copy of the manifests. ## Input Resolution This skill accepts an optional `<environment>` argument: ``` /util-preparek8senv [environment] ``` | Argument | Required | Example | Description | |----------|----------|---------|-------------| | `<environment>` | No | `home_server` | Target environment name — must match a Kubernetes environment in CLAUDE.md | If omitted: - If CLAUDE.md defines exactly **one** Kubernetes environment → auto-select it. - If CLAUDE.md defines **multiple** Kubernetes environments → list them and ask the user to specify. The environment name is matched **case-insensitively** against the environment headings in CLAUDE.md, accepting snake_case, kebab-case, or title-case input (e.g., `home_server`, `home-server`, `Home Server` all match `## Home Server`). All other configuration is read from the project root: | File | Purpose | Required | |------|---------|----------| | `CLAUDE.md` | Project detail, environments, 3rd party applications, rules | Yes | | `ENVIRONMENT.md` | Per-environment configs and credentials for 3rd party apps | Created if missing | | `DEVTOOL.md` | Local development tools (CLI p