Search code examples
kuberneteskubernetes-helm

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


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?


Solution

  • For future reference, I found a solution to this.

    Simply download the chart using the following command:

    helm fetch <chart> --untar --destination /local/path/to/chart
    

    Go to the folder /local/path/to/chart/<chartname> and make the desired changes.

    After this, simply install the helm chart based on the locally edited chart:

    helm install  /local/path/to/chart/<chartname>