技能 helm-chart-scaffolding
📦

helm-chart-scaffolding

低風險 ⚡ 包含腳本⚙️ 外部命令🌐 網路存取

建立正式環境 Helm 圖表

從頭建立 Helm 圖表可能很複雜,需要遵循許多慣例。此技能提供逐步指導,幫助您建立可用於正式環境的 Helm 圖表。包括圖表結構、模板模式、values 管理和驗證策略。

支援: Claude Codex Code(CC)
🥈 78 白銀
1

下載技能 ZIP

2

在 Claude 中上傳

前往 設定 → 功能 → 技能 → 上傳技能

3

開啟並開始使用

測試它

正在使用「helm-chart-scaffolding」。 Create a Helm chart for my API application with PostgreSQL dependency

預期結果:

  • Chart.yaml configured with name, version, appVersion, and PostgreSQL dependency from Bitnami charts
  • values.yaml with image configuration, replicaCount, service settings, and PostgreSQL auth credentials
  • templates/deployment.yaml with container ports, environment variables, and resource limits
  • templates/service.yaml with ClusterIP type and target port configuration
  • templates/_helpers.tpl with naming conventions and label helpers

正在使用「helm-chart-scaffolding」。 Set up multi-environment Helm configuration for my app

預期結果:

  • Base values.yaml with default configuration for all environments
  • values-dev.yaml with development settings (lower replicas, larger resources for debugging)
  • values-prod.yaml with production settings (higher replicas, resource limits, autoscaling)
  • Environment-specific ingress and database configurations

正在使用「helm-chart-scaffolding」。 Validate my Helm chart for security best practices

預期結果:

  • Chart structure validation (Chart.yaml, values.yaml, templates directory present)
  • Security checks: runAsNonRoot, readOnlyRootFilesystem, privilege escalation disabled
  • Resource limits and requests defined
  • Liveness and readiness probes configured
  • Helm lint and dry-run validation passed

安全審計

低風險
v4 • 1/17/2026

This is a documentation and guidance skill for Helm chart development. Contains a validation script that runs local Helm commands for linting, templating, and dry-run installation. All 198 static findings are false positives triggered by documentation code blocks, standard Helm repository URLs, and legitimate YAML parsing operations. No malicious intent detected.

6
已掃描檔案
1,763
分析行數
3
發現項
4
審計總數

風險因素

審計者: claude 查看審計歷史 →

品質評分

77
架構
100
可維護性
85
內容
29
社群
90
安全
87
規範符合性

你能建構什麼

標準化圖表建立

使用最佳實踐模板和驗證,在您的組織中建立一致、可正式使用的 Helm 圖表。

封裝應用程式

使用適當的版本管理、文件和依賴管理,為分發封裝 Kubernetes 應用程式。

多環境部署

使用 Helm values 檔案管理開發、預發布和正式環境之間的配置。

試試這些提示

新圖表
Help me create a new Helm chart for my application. Include deployment, service, and ingress templates.
新增模板
Add a ConfigMap template to my existing Helm chart that reads configuration from the values.yaml file.
多環境
Set up multi-environment configuration for my Helm chart with separate values files for dev, staging, and production.
驗證圖表
Validate my Helm chart structure and templates. Check for security best practices, resource limits, and health probes.

最佳實務

  • 對圖表版本使用語意化版本控制,與應用程式版本分開
  • 精確固定依賴項目版本以確保可重複的部署
  • 在所有部署中包含健康檢查和資源限制

避免

  • 使用 latest 映像標籤而不固定版本
  • 在 values.yaml 中硬編碼敏感值,而非使用外部密鑰管理
  • 在封裝圖表之前跳過 helm lint 驗證

常見問題

需要什麼 Helm 版本?
此技能支援 Helm 3 及更新版本。Helm 3 引入了 API 版本 v2,這是使用的預設格式。
此技能可以與 CI/CD 管線整合嗎?
可以。驗證腳本可以整合到 CI 管線中,在封裝和部署之前對圖表進行 lint 和測試。
此技能會存取或儲存任何資料嗎?
不會。這是一個純指導技能。它會在本地讀取圖表檔案進行驗證,但不會將資料儲存在外部。
為什麼我的模板無法渲染?
常見問題包括缺少必要的值、模板語法錯誤,或引用了未定義的值。請使用 helm template --debug。
這與 helm create 有什麼不同?
helm create 會產生一個起始圖表。此技能提供更深入的结构理解、最佳實踐和自訂模式。
執行哪些圖表驗證?
此技能會驗證圖表結構、執行 helm lint、測試模板渲染、檢查最佳安全實踐,並驗證資源配置。