Interview Prep/Helm/Helm 3 Architecture & Release Storage

What is the difference between `helm template`, `--dry-run=client` and `--dry-run=server`?

AdvancedConceptHelm 3 Architecture & Release Storage
Answer
  • helm template: renders entirely offline, no cluster access, no release checks, lookup empty, .Capabilities defaulted.
  • helm install/upgrade --dry-run (=client): renders through the install/upgrade code path, checks the release state, prints the release and manifests, but does not contact the API server for validation; lookup is still empty.
  • --dry-run=server (Helm 3.13+): sends the objects to the API server in dry-run mode, so admission webhooks, schema validation and lookup all work, yet nothing is persisted.

Use template in PR checks without cluster credentials, --dry-run=server right before a production deploy.

All Helm questions Roadmap: Helm

More on Helm 3 Architecture & Release Storage