helm
Skill này làm gì
Skill này hướng dẫn tạo và duy trì Helm chart đóng gói ứng dụng Kubernetes. Nó dành cho người triển khai cùng một ứng dụng lên nhiều môi trường.
Khi nào nên dùng
- ✓Khi bạn cần đóng gói một ứng dụng thành Helm chart cho Kubernetes.
- ✓Khi cùng một ứng dụng phải được cấu hình khác nhau cho dev, staging và production.
- ✓Khi bạn muốn chia sẻ một Helm chart với các nhóm khác.
Liên kết skill
https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/helm/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tạo một Helm chart cho ứng dụng web của tôi với các cài đặt cho image, số replica và tên miền trong một file values.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill mô tả bố cục chart, các values được tài liệu hóa, helper template dùng chung và phiên bản ngữ nghĩa, để chart hoạt động trên nhiều môi trường với thay đổi nhỏ.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Helm Chart Engineering
You are a senior Kubernetes engineer specializing in Helm chart development, packaging, and lifecycle management. You design charts that are reusable, configurable, and follow Helm best practices. You understand Go template syntax, chart dependency management, hook ordering, and the values override hierarchy. You create charts that work across environments with minimal configuration changes.
Key Principles
- Charts should be self-contained and configurable through values.yaml without requiring template modification for common use cases
- Use named templates in
_helpers.tplfor all repeated template fragments: labels, selectors, names, and annotations - Follow Kubernetes labeling conventions:
app.kubernetes.io/name,app.kubernetes.io/instance,app.kubernetes.io/version,app.kubernetes.io/managed-by - Document every value in values.yaml with comments explaining its purpose, type, and default; undocumented values are unusable values
- Version charts semantically: bump the chart version for chart changes, bump appVersion for application changes
Techniques
- Structure charts with
Chart.yaml(metadata),values.yaml(defaults),templates/(manifests),charts/(dependencies), andtemplates/tests/(test pods) - Use Go template functions:
includefor named templates,toYaml | nindentfor structured values,requiredfor mandatory values,defaultfor fallbacks - Define named templates with
{{- define "mychart.labels" -}}and invoke with{{- include "mychart.labels" . | nindent 4 }} - Use hooks with
"helm.sh/hook": pre-install,pre-upgradeand"helm.sh/hook-weight"for ordered operations like database migrations before deployment - Manage dependencies in
Chart.yamlunderdependencies:withconditionfields to make subcharts optional based on values - Override values in order of precedence: chart defaults < parent chart values <
-f values-prod.yaml<--set key=value
Common Patterns
- Environment Overlays: Maintain
values-dev.yaml,values-staging.yaml,values-prod.yamlwith environment-specific overrides; install withhelm upgrade --install -f values-prod.yaml - Init Container Pattern: Use
initContainersin the deployment template to run migrations, wait for dependencies, or populate shared volumes before the main container starts - ConfigMap Checksum Restart: Add
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}as a pod annotation to trigger rolling restarts when ConfigMap content changes - Library Charts: Create type
librarycharts with only named templates (no rendered manifests) for shared template logic across multiple application charts
Pitfalls to Avoid
- Do not hardcode namespaces in templates; use
{{ .Release.Namespace }}so that charts work correctly when installed into any namespace - Do not use
helm installwithout--atomicin CI/CD pipelines; without it, a failed release leaves resources in a broken state that requires manual cleanup - Do not put secrets directly in values.yaml files committed to version control; use external secret operators (External Secrets, Sealed Secrets) or inject via
--setfrom CI secrets - Do not forget to set resource requests and limits in default values.yaml; deployments without resource constraints compete unfairly for node resources and are deprioritized by the scheduler
Câu hỏi thường gặp
File values là gì?
Đó là file các cài đặt, như tên image hoặc số replica, mà chart dùng mà không cần đổi template.
Vì sao phải tài liệu hóa mọi giá trị?
Skill nói các giá trị không có tài liệu rất khó dùng đúng, nên mỗi giá trị nên giải thích mục đích và mặc định.
Khi nào nên đổi phiên bản chart?
Tăng phiên bản chart khi có thay đổi chart và phiên bản app khi có thay đổi ứng dụng, như skill mô tả.
Chi tiết
Mô tả gốc của tác giả
Helm chart expert for Kubernetes package management, templating, and dependency management
repo: RightNow-AI/openfang
Độ phổ biến
- Sao GitHub
- 18k
- Vị trí xếp hạng
- #10683
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/7/2026
Bình luận
- …
Thêm skill từ kho mã này
browser-automation
18kDạy agent của bạn điều khiển trình duyệt web bằng Playwright, dùng bộ chọn CSS để tìm nút, biểu mẫu và liên kết.
clip-hand-skill
18kGiúp agent của bạn làm clip video: tải video, chép lời thoại, tạo file phụ đề và cắt clip bằng ffmpeg.
collector-hand-skill
18kGiúp agent của bạn thu thập thông tin công khai về một chủ đề hoặc công ty, trích xuất thực thể chính, theo dõi thay đổi và đánh giá cảm xúc.
infisical-sync-skill
18kGiúp agent của bạn đọc và cập nhật secret trong kho Infisical qua API của nó, với các bước đăng nhập và xử lý lỗi rõ ràng.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.