<p>When I tried to delete a kubernetes cluster running in AWS, it removed all the associated resources like loadbalancers of my application, autoscaling groups, EC2 instances and its EBS volumes as expected. However, it also removed EBS volume that I used as a persistent volume. Luckily, I had a snapshot to create an EBS volume out of it. How to avoid this in future when I want to delete my cluster without disturbing EBS volume that I used for my database?</p>
<p>I followed the steps below for deleting my cluster.</p>
<ol>
<li><code>Kubectl delete -f my-applicaton.yml</code> (to terminate all the services&amp;deployments including database pod)</li>
<li>Changed reclaim policy of persistent volume from <code>DELETE</code> to <code>RETAIN</code></li>
<li><code>kubectl delete pvc db-pvc</code> (deleted persistent volume claim)</li>
<li><code>kubectl delete pv db-pv</code> (deleted persistent volume)</li>
<li><code>kops delete cluster --name ${NAME} --yes</code></li>
</ol>

HarishVijayamohan
<p>To prevent kOps from deleting the EBS(Elastic Block Store) volume you need to remove all the tags on the EBS volume. Then you can add this to your PV in your new cluster in order to reuse it:</p>
<pre><code>awsElasticBlockStore:
  volumeID: &lt;vol-123&gt;
  fsType: ext4
</code></pre>
