Render a Helm chart and preview its Kubernetes diff
Build a paste-ready command, then review its compatibility and effects before running it.
helm template <release> <chart> -n <namespace> -f <file> | kubectl diff -n <namespace> -f -Complete required fields to copy the generated command.
Compatibility
Linux + macOS + WindowsVerified for Linux, macOS, Windows using bash, zsh, powershell syntax.
Operational knowledgereview due 2027-01-19
Requirementshelmhelm must be installed and available on PATH.Network accessThe target must be reachable from the current environment.
Version supporthelm Current supported releasesVerified for linux, macos, windows using bash, zsh, powershell syntax; consult compatibility notes for platform-specific differences.
Expected signalsdiff -u -N /tmp/LIVE/apps.v1.Deployment.production.api /tmp/MERGED/apps.v1.Deployment.production.apiRepresentative successful output; values vary with the selected target and system state.
Known errorshelm: command not foundhelm is missing or is not available on PATH.
Verifyhelm template {{release}} {{chart}} -n {{namespace}} -f {{file}} | kubectl diff -n {{namespace}} -f -The output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01helmCommandRuns the helm stage of this one-liner.
02templateArgumentPasses template to helm.
03<release>ParameterA value supplied in the Fill parameters section.
04<chart>ParameterA value supplied in the Fill parameters section.
05-nOptionApplies the command-specific numeric, dry-run, or non-resolving mode.
06<namespace>ParameterA value supplied in the Fill parameters section.
07-fOptionKeeps following new output or selects the command-specific force/file mode.
08<file>ParameterA value supplied in the Fill parameters section.
09|PipelinePasses the output on the left to the command on the right.
10kubectlCommandRuns the kubectl stage of this one-liner.
11diffArgumentPasses diff to kubectl.
12-nOptionApplies the command-specific numeric, dry-run, or non-resolving mode.
13<namespace>ParameterA value supplied in the Fill parameters section.
14-fOptionKeeps following new output or selects the command-specific force/file mode.
15-OptionConfigures kubectl with the - option.
This advanced community-curated one-liner combines several stages. Review every option and placeholder before running it.
Example input
helm template api ./charts/api -n production -f values-prod.yaml | kubectl diff -n production -f -
Example output
diff -u -N /tmp/LIVE/apps.v1.Deployment.production.api /tmp/MERGED/apps.v1.Deployment.production.api
- image: registry.example.com/api:4.7.2
+ image: registry.example.com/api:4.8.0
Illustrative output — exact values vary by system and data.
Official sources