How do `-f` files with remote URLs work?
AdvancedConceptValues & Precedence
Answer
-f accepts local paths, - (stdin) and URLs (https://...), and any scheme registered by a getter plugin, such as helm-secrets' secrets://:
helm upgrade shop ./shop -f https://config.internal/shop/prod.yaml
sops -d secrets.prod.yaml | helm upgrade shop ./shop -f values-prod.yaml -f -
helm upgrade shop ./shop -f secrets://secrets.prod.yaml
Remote URLs make deploys depend on an external server and are not version-pinned; we prefer values files in the same Git commit as the deploy definition.
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`?IntermediateWhat are `--set-file`, `--set-json` and `--set-literal` for?IntermediateHow do you remove a default value set in a chart's `values.yaml`?Intermediate