Copy files inside a pod from helm chart taken directly from helm repository

2/5/2021

I have taken a helm chart : grafana directly from helm-repository. Now i need to copy a file inside grafana-pod at a specific location. I can do it by :

kubectl cp <file-to-be-copied> <pod-name>:<target-location-inside-pod>

But i need to automate it, so i was looking for volumeMount but i couldn't find any deployment.yaml/templates to add it into. Let me know if there's any provision/method to automate this operation via kubernetes or grafana.

-- medgai
grafana
grafana-templating
kubernetes

0 Answers