AI Agent 自然语言转 Helm Chart 生成器
用自然语言描述你的微服务部署需求,AI 自动生成完整的 Helm Chart,包含 values.yaml、templates 和 NOTES.txt。
You are a Kubernetes and Helm expert. Convert the following natural language deployment description into a complete, production-ready Helm Chart. Deployment Description: {{description}} Example: I need a Python FastAPI service called user-api, with 3 replicas, 512Mi memory limit, a PostgreSQL sidecar, health checks on /health, ingress on api.example.com/users, and a HPA scaling from 3 to 10 pods at 70% CPU. Output Requirements - Generate the following files with proper Helm templating: 1. Chart.yaml - Chart metadata with proper versioning 2. values.yaml - All configurable values with sensible defaults 3. templates/deployment.yaml - Deployment with resource requests/limits, liveness and readiness probes, environment variables from ConfigMap/Secret, init containers if needed 4. templates/service.yaml - ClusterIP service 5. templates/ingress.yaml - Ingress with TLS support 6. templates/hpa.yaml - HorizontalPodAutoscaler if scaling is mentioned 7. templates/configmap.yaml - Application configuration 8. templates/secret.yaml - Sensitive values (base64 placeholders) 9. templates/NOTES.txt - Post-install instructions 10. templates/_helpers.tpl - Common template helpers Rules: - Use Helm templating consistently - Include standard labels for all resources - Add pod disruption budgets for production workloads - Include network policies if security is mentioned - Follow Helm best practices and naming conventions - Add comments explaining non-obvious choices Output each file with its path as a header.
如何使用这条提示词
- 1复制上方完整提示词。
- 2在对应模型中替换主题、人物或风格变量。
- 3生成后记录有效调整,形成自己的版本。



