- Home
- Skills
- Ehtbanton
- Claudeskillsrepo
- Kubernetes Manifest Generator
kubernetes-manifest-generator_skill
- TypeScript
0
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill ehtbanton/claudeskillsrepo --skill kubernetes-manifest-generator- SKILL.md13.2 KB
Overview
This skill generates production-ready Kubernetes YAML manifests for deployments, services, ingress, configmaps, secrets, StatefulSets, CronJobs, HPA, NetworkPolicies and other resources following current best practices. It outputs valid Kubernetes 1.28+ YAML files with sensible defaults for security, observability, and scalability. Manifests include resource requests/limits, health probes, and restrictive security contexts by default.
How this skill works
When invoked with prompts like "create Kubernetes manifest" or "generate k8s yaml", the skill produces complete multi-file YAML manifests tailored to the described application. It applies templates for common stacks (namespaces, configmaps, secrets, deployments, services, ingress, HPA, PDB, networkpolicies), stateful workloads, CronJobs, and external-secrets patterns. Before returning output it validates API versions, labels, selectors, and required fields such as probes and resource limits.
When to use it
- Create manifests for a new microservice (Deployment, Service, ConfigMap, Secret).
- Provision stateful systems with persistent storage (StatefulSet, PVC templates, headless service).
- Set up scheduled tasks (CronJob) with secure service accounts and retry/backoff policies.
- Generate production-ready stacks including HPA, PodDisruptionBudget, NetworkPolicy and ResourceQuota.
- Produce manifest variants like blue/green or canary deployments for release strategies.
Best practices
- Always include requests and limits for CPU and memory to enable autoscaling and stable scheduling.
- Configure liveness, readiness, and startup probes to improve rollout reliability and fast failure detection.
- Use restrictive securityContext and drop capabilities; set runAsNonRoot and readOnlyRootFilesystem where possible.
- Avoid hardcoding secrets; prefer ExternalSecrets, SealedSecrets, or cloud secret stores and reference them.
- Label consistently and ensure service selectors exactly match pod labels; include namespace metadata on resources.
Example use cases
- Generate manifests for a Node.js API with Redis: Deployment, Service, ConfigMap, Secret, HPA.
- Create a StatefulSet and headless service for a PostgreSQL cluster with PVC templates and probes.
- Produce a CronJob for nightly backups with limited retries, TTL, and secure service account.
- Build an ingress manifest with TLS annotations and cert-manager issuer for a web application.
- Generate blue-green deployment manifests with two Deployments and a service switch strategy.
FAQ
Manifests are generated for Kubernetes 1.28+ and use current stable API versions where applicable; API versions are validated before output.
How are secrets handled?
Secrets are referenced but not hardcoded for production. The skill offers ExternalSecrets examples and notes to use external secret stores or sealed secrets in production.