Generating helm charts

From jeremylongshore/claude-code-plugins-plus-skills · View interactive version

Generating helm charts is an AI agent skill from the GitHub repository jeremylongshore/claude-code-plugins-plus-skills. Execute use when generating Helm charts for Kubernetes applications. Trigger with phrases like "create Helm chart", "generate chart for app", "package Kubernetes deployment", or "helm template". Produces production-ready charts with Chart.yaml, values.yaml, templates, and best practices for multi-en

How to use this skill

Skill file

Generating Helm Charts

Overview

Generate production-ready Helm 3 charts for Kubernetes applications with Chart.yaml, values.yaml, Go templates, and helper functions. Support multi-environment deployments with values overrides, dependency management, security contexts, health probes, and resource limits following Helm best practices.

Prerequisites

Instructions

  1. Analyze the application: identify container images, ports, environment variables, volumes, and dependencies
  2. Scaffold the chart structure: Chart.yaml, values.yaml, templates/, charts/, .helmignore
  3. Create Chart.yaml with apiVersion: v2, name, version, appVersion, and dependency declarations
  4. Define values.yaml with sensible production defaults: replica count, image config, resource limits, ingress settings
  5. Build templates using Go template syntax with proper .Values references and _helpers.tpl for reusable named templates
  6. Add health checks: livenessProbe and readinessProbe in the deployment template with configurable paths and thresholds
  7. Configure security context: runAsNonRoot: true, readOnlyRootFilesystem: true, and drop all capabilities
  8. Create environment-specific values files: values-dev.yaml, values-staging.yaml, values-prod.yaml
  9. Add NOTES.txt with post-install instructions showing how to access the application
  10. Validate with helm lint . and test rendering with helm template . --values values-prod.yaml

Output

Error Handling

| Error | Cause | Solution |

|-------|-------|---------|

| Chart.yaml: version is required | Missing or malformed version field | Add a valid SemVer version string to Chart.yaml |

| parse error in template | Go template syntax error (missing end, wrong function) | Run helm template . to pinpoint the error; check bracket matching and function names |

| dependency not found | Chart dependency not downloaded | Run helm dependency update to fetch dependencies into charts/ |

| release failed: timed out waiting for condition | Pods not reaching ready state during install | Check pod logs; verify image exists, resource limits are sufficient, and probes are correct |

| values override not applied | Wrong values file path or key mismatch | Verify --values file path and that keys match the structure in values.yaml exactly |

Examples

Resources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.