Skip to content

Helmsman — declarative Helm release management

Helmsman turns a state file into a fleet of Helm releases — desired-state model, drift correction, and the patterns we use for shared Kubernetes clusters.

helm install is fine for one chart. helm upgrade is fine for one chart at a time. But when a cluster runs thirty releases across ten namespaces with different chart sources, value overrides, and upgrade policies, the imperative model breaks down — you can’t tell what should be installed by reading helm list. Helmsman closes that gap with a single declarative state file: a TOML or YAML document that lists every desired release, their charts, namespaces, and values. Run helmsman --apply, and the cluster converges to the file. This article covers the install, the state-file shape we use in production, and the drift patterns we watch for.

How to verify

helmsman --version
helmsman --diff -f desired-state.yaml
helmsman --apply -f desired-state.yaml --no-banner
helm list -A -o table
kubectl get all -A -l app.kubernetes.io/managed-by=Helm
helmsman --apply -f desired-state.yaml --destroy   # explicit teardown

helmsman --diff is the equivalent of terraform plan for Helm — it shows what would be added, upgraded, or deleted without making changes. Always diff before apply in production.

What’s happening

Helmsman is a Go binary that reads a state file and reconciles it against the cluster. For each release in the file, it checks: (1) is the release installed? if not, helm install; (2) is the installed version different from desired? if so, helm upgrade; (3) are the values different? if so, helm upgrade. For releases in the cluster but not in the file, behavior depends on a --destroy flag — by default, Helmsman ignores them; with --destroy, it uninstalls.

The state file is the single source of truth. It can reference Helm repos by URL or git repos that contain charts; it can pull values from local files, environment variables, or AWS SSM/Secrets Manager; it can pin chart versions per environment.

Helmsman is not a replacement for Argo CD or Flux. Those projects do continuous reconciliation from a git commit; Helmsman runs imperatively, when you invoke it. The use case: you want declarative Helm management with the simplicity of “run this command in CI on every commit to main” rather than the operational footprint of a GitOps controller. For Kubernetes clusters where the team already operates a release pipeline but doesn’t want to run a controller, Helmsman is the right shape.

The procedure

  1. Install Helmsman. Grab the binary:

    curl -fsSL -o /tmp/helmsman.tar.gz \
      https://github.com/Praqma/helmsman/releases/download/v3.18.0/helmsman_3.18.0_linux_amd64.tar.gz
    tar -xzf /tmp/helmsman.tar.gz -C /tmp
    sudo mv /tmp/helmsman /usr/local/bin/
    helmsman --version
  2. State file in desired-state.yaml:

    metadata:
      org: acme
      description: prod cluster release state
    settings:
      kubeContext: prod-us-east-1
      globalHooks: { successCondition: "Complete", successTimeout: "5m" }
    namespaces:
      monitoring: { create: true }
      ingress:    { create: true }
      apps:       { create: true }
    helmRepos:
      bitnami: https://charts.bitnami.com/bitnami
      prometheus-community: https://prometheus-community.github.io/helm-charts
      ingress-nginx: https://kubernetes.github.io/ingress-nginx
    apps:
      ingress-nginx:
        namespace: ingress
        enabled: true
        chart: ingress-nginx/ingress-nginx
        version: "4.10.1"
        valuesFiles: ["values/ingress-nginx.yaml"]
        priority: -10
      kube-prometheus-stack:
        namespace: monitoring
        enabled: true
        chart: prometheus-community/kube-prometheus-stack
        version: "59.0.0"
        valuesFiles: ["values/kps.yaml"]
        set:
          grafana.adminPassword: "$GRAFANA_ADMIN_PASSWORD"
      external-dns:
        namespace: ingress
        enabled: true
        chart: bitnami/external-dns
        version: "8.3.5"
        valuesFiles: ["values/external-dns.yaml"]

    priority: -10 schedules ingress-nginx before anything else (lower numbers go first). This matters when one release depends on another being healthy.

  3. Values file (values/kps.yaml):

    prometheus:
      prometheusSpec:
        retention: 30d
        resources: { requests: { memory: "1Gi", cpu: "500m" } }
        storageSpec:
          volumeClaimTemplate:
            spec:
              storageClassName: gp3
              resources: { requests: { storage: 100Gi } }
  4. Secret values via env. Wrap helmsman in a script that exports secrets from your vault, then invokes Helmsman so it can substitute $GRAFANA_ADMIN_PASSWORD. Never commit the actual secret value to the state file.

  5. CI invocation. GitHub Actions example:

    - name: Helmsman diff
      run: helmsman --diff -f desired-state.yaml --no-banner
    - name: Helmsman apply (main only)
      if: github.ref == 'refs/heads/main'
      run: helmsman --apply -f desired-state.yaml --no-banner --no-color
  6. Destroy a release. Set enabled: false on the app in the state file. Helmsman uninstalls it on next apply, but only if you also pass --destroy. The two-step (disable + apply —destroy) is intentional.

  7. Multi-cluster. One state file per cluster (desired-state-prod.yaml, desired-state-staging.yaml). CI fans out: each file targets a different kubeContext.

Common pitfalls

  • No --diff before --apply. Helmsman happily uninstalls what isn’t in the file when --destroy is set. Always diff first.
  • Chart version pinned by repo update. helm repo update can change what 5.x resolves to. Always pin to an exact version: "5.4.2".
  • Values file with embedded secrets. End up in the git history forever. Use $ENV_VAR substitution and a secrets manager.
  • Priority not set on dependencies. A release that needs cert-manager installed first will fail until the next apply if priorities are wrong.
  • helm and helmsman in conflict. Manually helm upgrade outside Helmsman → next Helmsman apply tries to set it back to whatever the state file says. Pick one.

We use Helmsman on engagements where the client wants Helm-managed releases but isn’t running a GitOps controller — typically small to mid-size Kubernetes estates where adding Argo CD or Flux would be more operational weight than it’s worth. The state file lives in the platform repo, the CI runs --diff on every PR and --apply on merge, and our team owns the operations. The shape is part of /en/services/managed-operations/. For larger or multi-environment fleets that need per-env diffing as a first-class workflow, see /en/knowledge-base/helmfile-multi-environment/.