A project see how helm mounts local file content in a pod.
The chart templates will create a secret with content of a local file ./assets/realm.json
.
It will use that secret to add a pod volumeMount at /tmp/realm.json
.
The intent of this project is to see if that local file can be overridden by using the chart remotely and without modifying the repo file itself.
helm lint ./chart
helm template --debug ./chart
helm install app ./chart
k exec -it myapp -- /bin/bash
cat /tmp/realm.json
Ref to use the "GitHub pages" feature to behave as a file server: https://github.com/technosophos/tscharts/tree/master
helm package ./chart
mv helm-file-get-0.1.0.tgz docs
helm repo index docs --url https://thecodebeneath.github.io/helm-files-get
git add .
git commit -m "New chart index"
git push
This makes the ./docs
directory the repo url.
helm repo add codebeneath https://thecodebeneath.github.io/helm-files-get
helm repo update codebeneath
cd install-from-repo
helm install myapp codebeneath/helm-file-get
this uses the chart packaged assets/realm.json file (the default)
helm install myapp codebeneath/helm-file-get --values override-values.yaml --version 0.2.0
this uses the chart packaged assets/junk.json file (from the override-values file).
it does NOT take the local directory assets/junk.json file as I hoped.
bummer.