k8s-manifest-generator – skill DevOps & Hạ tầng cho agent AI
Tạo manifest Kubernetes sẵn sàng cho production cho Deployments, Services, ConfigMaps và Secrets theo best practices và tiêu chuẩn bảo mật. Dùng khi tạo YAML manifest Kubernetes, tạo tài nguyên K8s hoặc triển khai cấu hình Kubernetes cấp production.
Cài skill k8s-manifest-generator bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/k8s-manifest-generator-0c972.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /k8s-manifest-generator – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/k8s-manifest-generator-0c972.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $k8s-manifest-generator – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/k8s-manifest-generator-0c972.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /k8s-manifest-generator – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/k8s-manifest-generator-0c972.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /k8s-manifest-generator – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Kubernetes Manifest Generator
Step-by-step guidance for creating production-ready Kubernetes manifests including Deployments, Services, ConfigMaps, Secrets, and PersistentVolumeClaims.
Purpose
This skill provides comprehensive guidance for generating well-structured, secure, and production-ready Kubernetes manifests following cloud-native best practices and Kubernetes conventions.
When to Use This Skill
Use this skill when you need to:
- Create new Kubernetes Deployment manifests
- Define Service resources for network connectivity
- Generate ConfigMap and Secret resources for configuration management
- Create PersistentVolumeClaim manifests for stateful workloads
- Follow Kubernetes best practices and naming conventions
- Implement resource limits, health checks, and security contexts
- Design manifests for multi-environment deployments
Detailed patterns and worked examples
Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.
Best Practices Summary
1. Always set resource requests and limits - Prevents resource starvation
2. Implement health checks - Ensures Kubernetes can manage your application
3. Use specific image tags - Avoid unpredictable deployments
4. Apply security contexts - Run as non-root, drop capabilities
5. Use ConfigMaps and Secrets - Separate config from code
6. Label everything - Enables filtering and organization
7. Follow naming conventions - Use standard Kubernetes labels
8. Validate before applying - Use dry-run and validation tools
9. Version your manifests - Keep in Git with version control
10. Document with annotations - Add context for other developers
Troubleshooting
Pods not starting:
- Check image pull errors:
kubectl describe pod <pod-name> - Verify resource availability:
kubectl get nodes - Check events:
kubectl get events --sort-by='.lastTimestamp'
Service not accessible:
- Verify selector matches pod labels:
kubectl get endpoints <service-name> - Check service type and port configuration
- Test from within cluster:
kubectl run debug --rm -it --image=busybox -- sh
ConfigMap/Secret not loading:
- Verify names match in Deployment
- Check namespace
- Ensure resources exist:
kubectl get configmap,secret
Next Steps
After creating manifests:
1. Store in Git repository
2. Set up CI/CD pipeline for deployment
3. Consider using Helm or Kustomize for templating
4. Implement GitOps with ArgoCD or Flux
5. Add monitoring and observability
Related Skills
helm-chart-scaffolding- For templating and packaginggitops-workflow- For automated deploymentsk8s-security-policies- For advanced security configurations
Skill liên quan
- azure-ai-vision-imageanalysis-py – SDK Azure AI Vision Image Analysis cho chú thích, thẻ, đối tượng, OCR, nhận diện người…
- azure-ai-voicelive-dotnet – SDK Azure AI Voice Live cho .NET. Xây dựng ứng dụng AI giọng nói thời gian thực với giao…
- azure-ai-voicelive-py – Xây dựng ứng dụng AI giọng nói thời gian thực với giao tiếp WebSocket hai chiều.
- azure-ai-voicelive-ts – SDK Azure AI Voice Live cho JavaScript/TypeScript. Xây dựng ứng dụng AI giọng nói thời…
- azure-aks – Triển khai và quản lý cụm Azure Kubernetes Service. Cấu hình node pool, mạng và tích…
- azure-appconfiguration-py – SDK Azure App Configuration cho Python. Dùng để quản lý cấu hình tập trung, feature flag…
- azure-appconfiguration-ts – Quản lý cấu hình tập trung với feature flag và làm mới động.
- azure-communication-callautomation-java – Xây dựng quy trình tự động hóa cuộc gọi phía máy chủ, bao gồm hệ thống IVR, định tuyến…