Command Palette

Search for a command to run...

Назад к скиллам
скилл № 01122

helm-charts

Expert guidance for authoring and maintaining Helm charts following standardized conventions, global registry support, templating best practices, and…

БесплатноБез исполняемых скриптов
cosmonic-labsот cosmonic-labs★ 22 звезды на GitHub

Установить helm-charts в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Helm Chart Style Guide

This skill provides standardized conventions for authoring and maintaining Helm charts, with a focus on:

  • Global registry override using .Values.global.image.registry
  • Clear, minimal templating
  • Consistent image: blocks for all containers

When to Use

Activate this skill when:

  • Creating new Helm charts
  • Reviewing or modifying existing Helm charts
  • Configuring image registries for air-gapped environments
  • Setting up multi-chart deployments with Helmfile

Image Configuration Best Practices

All charts must support the top-level configuration for global image settings.

global:
  image:
    registry: registry.mycompany.com

This enables centralized control of image sources across all dependencies and microservices.

Consistent Image Blocks

All charts should follow a consistent image: block for every containerized application.

Fields should be templated for registry, repository, tag, pullPolicy, and pullSecrets for all containers.

Every chart must define all image values with reasonable defaults in values.yaml:

prometheus:
  image:
    registry: docker.io
    repository: prom/prometheus
    tag: v2.52.0
    pullPolicy: IfNotPresent

Templating Pattern for Registry Override

Use a registry value at the top of the template. This pattern ensures ability to use internal registries (e.g., registry.mycompany.com) for air-gapped environments or mirrored image sources:

{{- $registry := .Values.prometheus.image.registry | default .Values.global.image.registry | default "docker.io" -}}
image:
  registry: {{ $registry }}
  repository: {{ .Values.prometheus.image.repository }}
  tag: {{ .Values.prometheus.image.tag }}
  pullPolicy: {{ .Values.prometheus.image.pullPolicy }}

Templating Conventions

Template only when necessary. Keep templates readable and manageable by avoiding over-templating.

Template:

  • Labels
  • Annotations
  • Resource requests and limits for CPU and memory for each container
  • Service port numbers and names

Avoid Templating:

  • Most values already present in values.yaml unless dynamically constructed

Linting & Validation

  • Run helm lint before commits
  • Use helm template for rendering checks
  • Ensure values.yaml and Chart.yaml are fully in sync with templated expectations

Automated Chart Testing with ct

Use the chart-testing tool (ct) to automate linting, installation, and upgrade checks for charts.

Installing ct

Install ct (chart-testing) locally:

brew install helm/chart-testing/ct
# or via Docker:
# docker pull quay.io/helmpack/chart-testing

Using ct

ct lint --config charts/your-chart/ct.yaml
ct install --config charts/your-chart/ct.yaml

Typical workflow:

  • Lint all charts: ct lint --all
  • Install and test charts: ct install --all
  • Test only changed charts: ct lint --charts charts/your-chart

Best Practices

  • Always run ct lint and ct install before submitting a PR
  • Ensure ct.yaml is up to date with chart locations and test settings
  • Integrate ct into CI pipelines for automated validation
  • Address all errors and warnings before merging

Helmfile Multi-Chart Management

Helmfile enables declarative management of multiple Helm charts and environments.

Installing Helmfile

brew install helmfile
# or via Docker:
# docker run --rm -v $PWD:/apps -w /apps ghcr.io/helmfile/helmfile:latest helmfile --help

Using Helmfile

  • Define releases and environments in helmfile.yaml or helmfile.d/*.yaml
  • Use values: blocks to layer configuration and support overrides per environment
  • Run helmfile lint to validate all releases and values
  • Apply changes with helmfile apply (dry-run with --dry-run first)
  • Sync state with helmfile sync to ensure all releases match the desired state

Helmfile Best Practices

  • Keep environment-specific values in separate files (e.g., values-prod.yaml, values-dev.yaml)
  • Use secrets: for sensitive values, leveraging helm-secrets if needed
  • Prefer referencing charts by version for reproducibility
  • Use helmfile diff before applying changes to preview impact
  • Document all environments and overrides clearly
  • Validate with helmfile lint and test deployments in CI where possible

Naming Conventions

Chart names must be lower case letters and numbers. Words may be separated with dashes (-).

Neither uppercase letters nor underscores can be used in chart names. Dots should not be used in chart names.

YAML files should be indented using two spaces (and never tabs).

CRDs

When working with Custom Resource Definitions (CRDs):

  • There is a declaration of a CRD (YAML file with kind: CustomResourceDefinition)
  • There are resources that use the CRD (resources with the CRD's apiVersion and kind)

F

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл helm-charts?

Expert guidance for authoring and maintaining Helm charts following standardized conventions, global registry support, templating best practices, and Kubernetes deployment patterns. Use this skill when creating new Helm charts, reviewing or modifying existing charts, configuring image registries for air-gapped environments, setting up multi-chart deployments with Helmfile, or whenever the user mentions Helm, Chart.yaml, values.yaml, helmfile, or Kubernetes manifest templating.

Как установить скилл helm-charts?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл helm-charts запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить helm-charts с