Is it possible to install a helm chart with a custom value not found in the templates or values.yaml?

11/25/2019

I need to install a helm chart with a key/value that is not present in one of the templates and I prefer not to edit the already existing templates.

In particular, I need to change resources.limits.cpu and resources.limits.memory in k8s-job-template.yaml but resources is not even mentioned in that file.

Is there a solution for this?

-- toerq
kubernetes
kubernetes-helm

1 Answer

11/26/2019

The only customizations it's possible to make for a Helm chart are those the chart author has written in; you can't make arbitrary additional changes to the YAML files.

(Kustomize allows merges of arbitrary YAML content and is built into recent kubectl, but it doesn't have some of the lifecycle or advanced templating features of Helm.)

-- David Maze
Source: StackOverflow