<p>I am looking to understand things regarding Google Kubernetes Cluster backup . I came across this document but this seems to be more on GCP Anthos On premises GKE Cluster .</p>
<p><a href="https://cloud.google.com/anthos/gke/docs/on-prem/archive/1.1/how-to/administration/backing-up" rel="nofollow noreferrer">https://cloud.google.com/anthos/gke/docs/on-prem/archive/1.1/how-to/administration/backing-up</a></p>
<p>I saw few blogs talking of a GKE feature to create a clone of existing GKE Cluster but I cannot find any option in GCP Console to create new cluster by cloning an existing GKE Cluster.</p>
<p><a href="https://blog.doit-intl.com/google-kubernetes-engine-cluster-migration-with-velero-4a140b018f32" rel="nofollow noreferrer">https://blog.doit-intl.com/google-kubernetes-engine-cluster-migration-with-velero-4a140b018f32</a></p>
<p>Can somebody please confirm if this cloning feature is still available in GKE or it is deprecated ?</p>
<p>Apart from Cloning a GKE Cluster , we need to take backup of Cluster resources and PersistentVolumes.
It seems Veloro is a useful tool for this and it is GKE aware.</p>
<p><a href="https://velero.io/" rel="nofollow noreferrer">https://velero.io/</a></p>
<p>I am looking for further suggestions regarding GKE Cluster backup which takes care of both Cluster resources and persistent volumes. Any recommendation/best practises from Google on GKE backup</p>

<blockquote>
<p>I saw few blogs talking of a GKE feature to create a clone of existing GKE Cluster but I cannot find any option in GCP Console to create new cluster by cloning an existing GKE Cluster.</p>
</blockquote>
<blockquote>
<p>Can somebody please confirm if this cloning feature is still available in GKE or it is deprecated ?</p>
</blockquote>
<p>You can in fact create a <strong>duplicate!</strong> By going into:</p>
<ul>
<li><code>Cloud Console</code> (Web UI) -&gt; <code>Kubernetes Engine</code> -&gt; <code>CLUSTER-NAME</code> -&gt; <code>Duplicate</code>.</li>
</ul>
<p><a href="https://i.stack.imgur.com/EHBjx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EHBjx.png" alt="DUPLICATE" /></a></p>
<blockquote>
<p><strong>Disclaimer!</strong></p>
<p>This option will create a duplicate of your cluster but it <strong>will not</strong> copy the workload (<code>Pods</code>, <code>Deployments</code>, <code>Services</code>, <code>Persistent Volumes</code>, etc.)</p>
</blockquote>
<hr />
<p>Transferring your workload will heavily depend on the resources that you are using. You will need to carefully consider all of the resources and choose the solution most appropriate to your use case.</p>
<p>Solution mentioned in the question:</p>
<ul>
<li><em><a href="https://velero.io/" rel="nofollow noreferrer">Velero.io</a></em></li>
</ul>
<p>Storage specific:</p>
<ul>
<li><em><a href="https://cloud.google.com/kubernetes-engine/docs/how-to/persistent-volumes/volume-snapshots" rel="nofollow noreferrer">Cloud.google.com: Kubernetes Engine: Persistent Volumes: Volume snapshots</a></em> - available from <code>GKE</code> version <code>1.17</code></li>
<li>Make snapshots/images from existing <code>PV's</code> and create new <code>PV's</code> from this snapshots/images:
<ul>
<li><em><a href="https://cloud.google.com/compute/docs/disks/restore-and-delete-snapshots#console" rel="nofollow noreferrer">Cloud.google.com: Compute: Disks: Restore and delete snapshots</a></em></li>
<li><em><a href="https://cloud.google.com/kubernetes-engine/docs/how-to/persistent-volumes/preexisting-pd" rel="nofollow noreferrer">Cloud.google.com: Kubernetes Engine: Persistent Volumes: Preexisting PD</a></em></li>
</ul>
</li>
</ul>
<hr />
<p>It could be beneficiary to add that you could also take a different approach and use tools that are designed to provision resources multiple times. Once created &quot;scripts&quot; could be used multiple times (on multiple clusters when migrating etc.). Examples of such tools:</p>
<ul>
<li><em><a href="https://cloud.google.com/deployment-manager" rel="nofollow noreferrer">Cloud.google.com: Deployment Manager</a></em></li>
<li><em><a href="https://www.terraform.io/" rel="nofollow noreferrer">Terraform.io</a></em></li>
<li><em><a href="https://www.ansible.com/" rel="nofollow noreferrer">Ansible.com</a></em></li>
</ul>
<hr />
<p>Additional resources:</p>
<ul>
<li><em><a href="https://www.youtube.com/watch?v=JyzgS-KKuoo" rel="nofollow noreferrer">Youtube.com: How to Backup and Restore Your Kubernetes Cluster - Annette Clewett &amp; Dylan Murray, Red Hat
</a></em></li>
<li><em><a href="https://cloud.google.com/kubernetes-engine/docs/concepts/storage-overview" rel="nofollow noreferrer">Cloud.google.com: Kubernetes Engine: Storage overview</a></em></li>
</ul>
