DEV Community

Alex Spinov
Alex Spinov

Posted on

Helm Has a Free API: The Package Manager for Kubernetes

Why Helm

Helm is the package manager for Kubernetes. Install complex applications with one command, manage versions, customize with values, share charts. The npm/apt of Kubernetes.

Install

brew install helm
Enter fullscreen mode Exit fullscreen mode

Install Applications

# Add a chart repository
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update

# Install PostgreSQL
helm install my-db bitnami/postgresql --set auth.postgresPassword=secret

# Install Redis
helm install my-cache bitnami/redis --set architecture=standalone

# Install Nginx Ingress
helm install ingress ingress-nginx/ingress-nginx
Enter fullscreen mode Exit fullscreen mode

Custom Values

# values.yaml
replicaCount: 3

image:
  repository: myorg/myapp
  tag: v2.0.0

resources:
  limits:
    cpu: 500m
    memory: 256Mi

ingress:
  enabled: true
  hosts:
    - host: app.example.com
      paths:
        - path: /
          pathType: Prefix
Enter fullscreen mode Exit fullscreen mode
helm install my-app ./charts/myapp -f values.yaml
Enter fullscreen mode Exit fullscreen mode

Create Your Own Chart

helm create myapp
Enter fullscreen mode Exit fullscreen mode
myapp/
  Chart.yaml      # Metadata
  values.yaml     # Default values
  templates/      # K8s manifests with Go templates
    deployment.yaml
    service.yaml
    ingress.yaml
Enter fullscreen mode Exit fullscreen mode

Manage Releases

# List releases
helm list

# Upgrade
helm upgrade my-app ./charts/myapp --set image.tag=v3.0.0

# Rollback
helm rollback my-app 1

# Uninstall
helm uninstall my-app

# History
helm history my-app
Enter fullscreen mode Exit fullscreen mode

Key Features

  • One-command install — complex apps in seconds
  • Versioning — upgrade, rollback, history
  • Templating — Go templates with values
  • Dependencies — charts can depend on other charts
  • Repositories — share charts via OCI registries
  • CNCF Graduated — industry standard

Resources


Need to extract Helm chart data, release info, or K8s package metadata? Check out my Apify tools or email spinov001@gmail.com for custom solutions.

Top comments (0)