SuperAPI AI 工具集

helm-chart-writing

部署与运维

查看项目

更新于 10-16 00:29

技能介绍

用途:指导从脚手架到校验,创建生产可用的 Helm Chart,确保结构、安全与最佳实践。

主要能力:提供标准目录结构(Chart.yaml、values.yaml、charts/、templates/);Chart.yaml 必填字段与依赖版本范围、condition 开关;values.yaml 组织规范(注释、camelCase、字符串加引号、安全默认值);_helpers.tpl 常用助手(name、fullname、chart、labels、selectorLabels、serviceAccountName,名称截断 63 字符);生产级 Deployment 模板(探针、资源限制、安全上下文、checksum 注解触发重启);条件资源创建与空指针安全处理;文件命名约定。

使用方式:先执行 helm create <chart-name> 生成结构,再按规范配置 Chart.yaml、values.yaml、_helpers.tpl 与模板文件。校验命令:helm lint ./mychart;helm template mychart ./mychart --debug;helm template mychart ./mychart -f values-prod.yaml;helm install test ./mychart --dry-run --debug。安装与升级:helm install mychart ./mychart --namespace test --create-namespace;helm upgrade mychart ./mychart --namespace test。

适用场景:为 Kubernetes 应用编写可复用、可维护的 Helm Chart,需要统一标签、安全默认值与依赖管理时。

限制:资料未提供具体收费、价格、平台支持范围与效果数据;相关 Helm/Kubernetes 综合指导可参考 helm-kubernetes-expert 智能体。