title: Volume Write Permissions
body: <p>How can I give the non-root user full access to the mounted volume path in Kubernetes (pod)?</p>
  
  <p>I'm using a volume on the host (/workspace/projects path) and writing to the directory as below.</p>
  
  <pre><code>volumeMounts:
  -name: workspace
   mountPath: /workspace/projects
  </code></pre>
  
  <p>Since, I'm copying the git repository content to the <strong>/projects</strong> directory, the git sets the permission to 755 by default. I want to set the permission to 775 as unable to write to the <strong>/project</strong> directory.</p>
  
  <p>Could you please let me know what is the best way to do this? I saw <strong>InitContainers</strong> and not sure whether there is any better solution.Appreciate any help! Thanks in advance!</p>