Interview Prep/Helm/Values & Precedence

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.

All Helm questions Roadmap: Helm

More on Values & Precedence