What are `--set-file`, `--set-json` and `--set-literal` for?
IntermediateConceptValues & Precedence
Answer
--set-file key=path: sets the value to the file's contents (certificates, config files, scripts).--set-json 'api.resources={"limits":{"memory":"512Mi"}}': sets structured JSON values in one flag.--set-literal key=value: takes the value verbatim with no parsing of commas, braces or escapes, handy for passwords with special characters.
helm upgrade shop ./shop --set-file tls.crt=./certs/tls.crt --set-literal db.password='p@ss,w{rd}'
More on Values & Precedence
What is the precedence order of values in Helm?BeginnerHow are lists merged across values files?IntermediateWhat is the difference between `--set` and `--set-string`?BeginnerHow do you set nested keys, list items and keys containing dots with `--set`?IntermediateHow do you remove a default value set in a chart's `values.yaml`?IntermediateWhat does `--reuse-values` do and why is it dangerous?Advanced