此技能帮助 DevOps 工程师从头开始构建 Helm charts,并遵循将应用打包和部署到 Kubernetes 集群的最佳实践。
下载技能 ZIP
在 Claude 中上传
前往 设置 → 功能 → 技能 → 上传技能
开启并开始使用
测试它
正在使用“helm-chart-scaffolding”。 Create a new Helm chart called 'myapi' with a Deployment, Service, and Ingress
预期结果:
Generated Helm chart with Chart.yaml, values.yaml, templates/deployment.yaml, templates/service.yaml, templates/ingress.yaml, and templates/_helpers.tpl. Includes recommended security settings and resource limits.
正在使用“helm-chart-scaffolding”。 Show me the structure of a production-ready Helm chart
预期结果:
A complete Helm chart structure with: Chart.yaml (metadata), values.yaml (configuration), templates/ (Kubernetes manifests), charts/ (dependencies), README.md, LICENSE, and validate-chart.sh script for validation.
安全审计
安全All 187 static findings are false positives. The skill provides Helm chart scaffolding templates, documentation, and a validation script. The scanner incorrectly flagged placeholder text, documentation code examples, and standard shell scripting patterns as security issues.
质量评分
你能构建什么
新 Kubernetes 应用设置
快速为新的微服务构建生产就绪的 Helm chart,预先配置安全默认值、资源限制和健康探针。
多环境配置
为开发、预发布和生产环境创建结构化的 values 文件,包含适当的资源分配和配置覆盖。
Chart 验证和最佳实践
使用内置的验证脚本检查 chart 中的常见问题、安全配置错误和 Helm 最佳实践合规性。
试试这些提示
Create a new Helm chart for my application called 'myapp' with version 1.0.0. Include a Deployment, Service, and ConfigMap. Use the helm-chart-scaffolding skill.
Generate a production-ready Helm chart with security best practices including pod security context, resource limits, liveness and readiness probes, and network policies. Use the helm-chart-scaffolding skill.
Create a Helm chart with separate values files for dev, staging, and production environments. Include appropriate resource allocations and replica counts for each environment. Use the helm-chart-scaffolding skill.
Run the validate-chart.sh script to validate my existing Helm chart at ./mychart. Check for best practices, security settings, and common issues. Use the helm-chart-scaffolding skill.
最佳实践
- 始终在 values.yaml 中定义资源请求和限制,以防止资源耗尽
- 使用存活探针和就绪探针进行正确的容器健康监控
- 使用每个环境的 values 文件将配置与代码分离
- 在 CI/CD 流水线中包含 Chart.yaml 和 values.yaml 验证
避免
- 不要在 values.yaml 中硬编码密钥 - 使用外部密钥操作符
- 避免使用 latest 标签作为容器镜像 - 指定确切的版本
- 不要跳过验证 - 始终使用 helm lint 和 template 测试 charts
- 避免将敏感数据放在 ConfigMaps 中 - 使用 Secrets 或外部密钥管理