Skills · Infrastructure & ops

Kubernetes Manifest Generator

Unverified29/40

Create production-ready Kubernetes manifests for Deployments, Services, ConfigMaps, and Secrets following best practices and security standards. Use when generating Kubernetes YAML manifests, creating K8s resources, or implementing production-grade Kubernetes configurations.

Originally by wshobson · MIT

Claude CodePartialHas SKILL.md but declares no allowed-tools — Claude Code will ask for permission each time
CursorPartialPlain prose you can paste in — but no Cursor rules file
CodexPartialPlain prose you can paste in — but no AGENTS.md
Gemini CLIPartialPlain prose you can paste in
CopilotPartialPlain prose you can paste in — but no Copilot instructions file
npx agentalley add k8s-manifest-generator

This command does not work yet — the CLI is still being built. Until then, use Raw in the reader below to take the file.

Who is stuck, and on what

Create production-ready Kubernetes manifests for Deployments, Services, ConfigMaps, and Secrets following best practices and security standards. Use when generating Kubernetes YAML manifests, creating K8s resources, or implementing production-grade Kubernetes configurations.

The whole source

No sign-in, no blur, nothing truncated
k8s-manifest-generator/SKILL.md78 lines3.0 KBRawView on GitHub
Frontmatter — 2 properties
namek8s-manifest-generator
descriptionCreate production-ready Kubernetes manifests for Deployments, Services, ConfigMaps, and Secrets following best practices and security standards. Use when generating Kubernetes YAML manifests, creating K8s resources, or implementing production-grade Kubernetes configurations.
1---
2name: k8s-manifest-generator
3description: Create production-ready Kubernetes manifests for Deployments, Services, ConfigMaps, and Secrets following best practices and security standards. Use when generating Kubernetes YAML manifests, creating K8s resources, or implementing production-grade Kubernetes configurations.
4---A5No allowed-tools declared — no way to tell what this skill may touch
5 
6# Kubernetes Manifest Generator
7 
8Step-by-step guidance for creating production-ready Kubernetes manifests including Deployments, Services, ConfigMaps, Secrets, and PersistentVolumeClaims.
9 
10## Purpose
11 
12This skill provides comprehensive guidance for generating well-structured, secure, and production-ready Kubernetes manifests following cloud-native best practices and Kubernetes conventions.
13 
14## When to Use This Skill
15 
16Use this skill when you need to:
17 
18- Create new Kubernetes Deployment manifests
19- Define Service resources for network connectivity
20- Generate ConfigMap and Secret resources for configuration management
21- Create PersistentVolumeClaim manifests for stateful workloads
22- Follow Kubernetes best practices and naming conventions
23- Implement resource limits, health checks, and security contexts
24- Design manifests for multi-environment deployments
25 
26## Detailed patterns and worked examples
27 
28Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient.
29 
30## Best Practices Summary
31 
321. **Always set resource requests and limits** - Prevents resource starvation
332. **Implement health checks** - Ensures Kubernetes can manage your application
343. **Use specific image tags** - Avoid unpredictable deployments
354. **Apply security contexts** - Run as non-root, drop capabilities
365. **Use ConfigMaps and Secrets** - Separate config from code
376. **Label everything** - Enables filtering and organization
387. **Follow naming conventions** - Use standard Kubernetes labels
398. **Validate before applying** - Use dry-run and validation tools
409. **Version your manifests** - Keep in Git with version control
4110. **Document with annotations** - Add context for other developers
42 
43## Troubleshooting
44 
45**Pods not starting:**
46 
47- Check image pull errors: `kubectl describe pod <pod-name>`
48- Verify resource availability: `kubectl get nodes`
49- Check events: `kubectl get events --sort-by='.lastTimestamp'`
50 
51**Service not accessible:**
52 
53- Verify selector matches pod labels: `kubectl get endpoints <service-name>`
54- Check service type and port configuration
55- Test from within cluster: `kubectl run debug --rm -it --image=busybox -- sh`
56 
57**ConfigMap/Secret not loading:**
58 
59- Verify names match in Deployment
60- Check namespace
61- Ensure resources exist: `kubectl get configmap,secret`
62 
63## Next Steps
64 
65After creating manifests:
66 
671. Store in Git repository
682. Set up CI/CD pipeline for deployment
693. Consider using Helm or Kustomize for templating
704. Implement GitOps with ArgoCD or Flux
715. Add monitoring and observability
72 
73## Related Skills
74 
75- `helm-chart-scaffolding` - For templating and packaging
76- `gitops-workflow` - For automated deployments
77- `k8s-security-policies` - For advanced security configurations
78 

Reviews

Installed this one?Write the first review and take the Trailblazer badge.

Reviews only open after a real install, so this is empty — and we leave it empty rather than invent one.

Alternatives

Also in Infrastructure & ops