Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

256
Views
Manipulate Helm chart values (not `values.yaml`) at installation time

Has anyone figured out any way to manipulate the chart (not values.yaml) when installing Helm charts?

For example, I have a bash script that basically does

helm3 upgrade --install <options>

Regardless of whatever the value of resources.limits.cpu is in any of my charts, I want to set it to a specific value when installing any charts. If all my charts were using {{ .Values.resources.limits.cpu }} I could use --set but my charts are inconsistent. Long term, proper solution is to have consistent charts, but I'm looking for a quick and dirty way.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I don't think you can change it with helm. But you could try using mutating webhook like the one here: https://github.com/garethr/kubernetes-webhook-examples/blob/master/src/app.py#L38-L41 to alter pods spec in flight as they are being created.

But if you are not using any helm specific features and use it only as templating engine, you can try the following quick and dirty hack:

helm template  . | yq e '.spec.template.spec.containers[].resources.limits.cpu = "123"' /dev/stdin

Notice the use of helm template (to render templates) an yq (to change limit values)

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!