title: How to rename persistence volume claim?
body: <p><strong>Is is possible to rename a PVC?</strong> I can't seem to find an evidence it is possible.</p>
  
  <hr>
  
  <p>I'm trying mitigate an "No space left of device" issue I just stumbled upon. Essentially my plan requires me to resize the volume, on which my service persists its data.</p>
  
  <p>Unfortunately I'm still on Kubernetes 1.8.6 on GKE. It does not have the <a href="https://kubernetes.io/docs/admin/admission-controllers/#persistentvolumeclaimresize" rel="noreferrer"><code>PersistentVolumeClaimResize</code></a> admission plugin enabled:</p>
  
  <ul>
  <li>1.9.1: <a href="https://github.com/kubernetes/kubernetes/blob/v1.9.1/cluster/gce/config-default.sh#L300" rel="noreferrer">config-default.sh#L254@1.9.1</a></li>
  <li>1.8.6: <a href="https://github.com/kubernetes/kubernetes/blob/v1.8.6/cluster/gce/config-default.sh#L254" rel="noreferrer">config-default.sh#L254@1.8.6</a></li>
  </ul>
  
  <p>Therefor I have to try and save the data manually. I made the following plan:</p>
  
  <ol>
  <li>create a new, bigger volume PVC,</li>
  <li>create a temp container with attached "victim" pvc and a new bigger pvc,</li>
  <li>copy the data,</li>
  <li>drop "victim" PVC,</li>
  <li><strong>rename</strong> new bigger pvc to take place of "victim".</li>
  </ol>
  
  <p>The PVC in question is attached to StatefulSet, so the old and new names must match (as StatefulSet expects follows the volume naming convention). </p>
  
  <p>But I don't understand how to rename persistent volume claims.</p>