k8s-manifest

k8s-manifest is a command for Claude Code from rohitg00/awesome-claude-code-toolkit. It costs 0 tokens per session (740 once invoked), scanned A, original, Apache-2.0.

A command that creates Kubernetes configuration files for running an application in a cluster. Kubernetes is a system that deploys, scales, updates, and monitors containerized applications.

In plain words
What is it for?
Use it to generate a Deployment and related settings based on the project’s Dockerfile, ports, environment variables, and application type.
Why use it?
It removes much of the manual work needed to describe replicas, resource limits, health probes, configuration, secrets, and rolling updates.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the deploy-pilot plugin — 3 commands shipped together

Good fit Use it to generate a Deployment and related settings based on the project’s Dockerfile, ports, environment variables, and application type.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/rohitg00/awesome-claude-code-toolkit/k8s-manifest
About the project

Awesome Claude Code Toolkit is a curated collection of extensions and configuration for Claude Code, including agents, skills, commands, plugins, hooks, rules, templates, MCP configurations, and companion apps. It is for Claude Code users who want ready-made workflows and integrations for different development tasks. The catalogue add-ons are selected components from this toolkit.

rohitg00/awesome-claude-code-toolkit · 2,598 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/rohitg00/awesome-claude-code-toolkit

Made for: Claude Code.

Or install deploy-pilot, the plugin that ships this one along with the rest of its 3 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for k8s-manifest

README.md
[![agentmods](https://agentmods.dev/badge/commands/rohitg00/awesome-claude-code-toolkit/k8s-manifest/github.svg)](https://agentmods.dev/commands/rohitg00/awesome-claude-code-toolkit/k8s-manifest)
Your own site
<a href="https://agentmods.dev/commands/rohitg00/awesome-claude-code-toolkit/k8s-manifest"><img src="https://agentmods.dev/badge/commands/rohitg00/awesome-claude-code-toolkit/k8s-manifest/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for k8s-manifest

Your own site · 80×15
<a href="https://agentmods.dev/commands/rohitg00/awesome-claude-code-toolkit/k8s-manifest"><img src="https://agentmods.dev/badge/commands/rohitg00/awesome-claude-code-toolkit/k8s-manifest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 740 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00740
Opus 5 $0.00000 $0.00370
Sonnet 5 $0.00000 $0.00148
Haiku 4.5 $0.00000 $0.00074

Measured 5d ago against content hash 926e98beaf0c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

k8s-manifest scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/deploy-pilot/commands/k8s-manifest.md · 69 lines

How it starts

The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/deploy-pilot:k8s-manifest

Generate production-ready Kubernetes manifests for the current application.

Process

  1. Gather application details:

    • Read the Dockerfile or build config to determine the container image and port
    • Check for existing k8s manifests in k8s/, deploy/, manifests/, or kubernetes/ directories
    • Identify environment variables from .env.example or the application config
    • Determine resource requirements based on the application type
  2. Generate a Deployment manifest:

    • Set replicas: 2 as the default for high availability
    • Configure rolling update strategy with maxSurge: 1 and maxUnavailable: 0
    • Set resource requests and limits:
      • Web apps: 128Mi memory request, 256Mi limit, 100m CPU request, 500m limit
      • APIs: 256Mi memory request, 512Mi limit, 200m CPU request, 1000m limit
      • Workers: 512Mi memory request, 1Gi limit, 250m CPU request, 1000m limit
    • Add liveness and readiness probes:
      • HTTP probe for web services (GET /healthz)
      • TCP probe for non-HTTP services
      • Set initialDelaySeconds, periodSeconds, and failureThreshold appropriately
    • Mount environment variables from ConfigMap and secrets from Secret
    • Set security context: runAsNonRoot, readOnlyRootFilesystem, drop all capabilities
    • Add pod disruption budget for graceful scaling
  3. Generate a Service manifest:

    • ClusterIP service for internal communication
    • Match the deployment selector labels
    • Map the container port to the service port
  4. Generate an Ingress manifest (if the app is externally accessible):

    • Use the networking.k8s.io/v1 API version
    • Configure TLS with a placeholder for cert-manager cluster issuer annotation
    • Set appropriate path type (Prefix for SPAs, Exact for APIs)
    • Include a placeholder hostname that the user should customize
  5. Generate supporting resources:

    • ConfigMap for non-sensitive environment variables
    • Secret manifest (with placeholder values) for sensitive configuration
    • HorizontalPodAutoscaler targeting 70% CPU utilization, scaling 2-10 replicas
    • NetworkPolicy restricting ingress to only the necessary ports

Read the full file on GitHub · 69 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 69 lines · 0 tokens per session scan A 926e98beaf0c

Subscribe to this mod's changes

k8s-manifest is a command published in the GitHub repository rohitg00/awesome-claude-code-toolkit (2,598 stars, last pushed 3mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 740 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.