title: k8s: copy file to container after pod's deployment
body: <p>I'm using a Helm chart to deploy an app in the Kubernetes. After deployment, I want to copy a file from the chart repository to the container. </p>
  
  <p>Currently I am doing this manually:</p>
  
  <pre><code>kubectl cp custom-samples.json che-8467596d54-7c2hg:/data/templates
  </code></pre>
  
  <p>But I want to make this step a part of the deployment that will be performed automatically. Note that I took a look at <code>post-install</code> hooks but I'm not sure it's a good solution.</p>
  
  <p>[UPD] I created this init container:</p>
  
  <pre><code> - name: add-custom-samples
          image: alpine:3.5
          command: ["sh", "-c", "cd /data/templates; touch custom.json;"]
          volumeMounts: [{
                "mountPath": "/data",
                "name": "che-data-volume"
          }]
  </code></pre>
  
  <p>But the file <code>custom.json</code> is missing in the mounted volume.</p>