helm template

Locally render templates

Synopsis

Render chart templates locally and display the output.

This does not require Tiller. However, any values that would normally be looked up or retrieved in-cluster will be faked locally. Additionally, none of the server-side testing of chart validity (e.g. whether an API is supported) is done.

To render just one template in a chart, use ‘-x’:

  1. $ helm template mychart -x templates/deployment.yaml
  1. helm template [flags] CHART

Options

  1. -a, --api-versions stringArray Kubernetes api versions used for Capabilities.APIVersions
  2. -x, --execute stringArray Only execute the given templates
  3. -h, --help help for template
  4. --is-upgrade Set .Release.IsUpgrade instead of .Release.IsInstall
  5. --kube-version string Kubernetes version used as Capabilities.KubeVersion.Major/Minor (default "1.14")
  6. -n, --name string Release name (default "release-name")
  7. --name-template string Specify template used to name the release
  8. --namespace string Namespace to install the release into
  9. --notes Show the computed NOTES.txt file as well
  10. --output-dir string Writes the executed templates to files in output-dir instead of stdout
  11. --set stringArray Set values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)
  12. --set-file stringArray Set values from respective files specified via the command line (can specify multiple or separate values with commas: key1=path1,key2=path2)
  13. --set-string stringArray Set STRING values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)
  14. -f, --values valueFiles Specify values in a YAML file (can specify multiple) (default [])

Options inherited from parent commands

  1. --debug Enable verbose output
  2. --home string Location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
  3. --host string Address of Tiller. Overrides $HELM_HOST
  4. --kube-context string Name of the kubeconfig context to use
  5. --kubeconfig string Absolute path of the kubeconfig file to be used
  6. --tiller-connection-timeout int The duration (in seconds) Helm will wait to establish a connection to Tiller (default 300)
  7. --tiller-namespace string Namespace of Tiller (default "kube-system")

SEE ALSO

  • helm - The Helm package manager for Kubernetes.
Auto generated by spf13/cobra on 3-Oct-2019