<p>I need to clone my deployment including the volume. I couldn't find any resources on this question except about cloning volume using CSI driver as explained in this <a href="https://kubernetes-csi.github.io/docs/volume-cloning.html#overview" rel="nofollow noreferrer">https://kubernetes-csi.github.io/docs/volume-cloning.html#overview</a></p>
<p>Is there a way to clone a deployment other than renaming the deployment and deploying it again through the kubectl?</p>

Dinuka Salwathura
<blockquote>
<p>Is there a way to clone a deployment other than renaming the
deployment and deploying it again through the kubectl?</p>
</blockquote>
<p>Unfortunately no. At the time of this writing there is no such a tool that will allow to clone your deployment. So you will have to use the option already mentioned in the question or deploy that using helm chart.</p>
<p>With helm your can pass custom parameters such as <code>--generate-name</code> or  edit <code>values.yaml</code> content to quickly deploy similar deployment.</p>
<p>Worth mentioning here is also <a href="https://velero.io/" rel="nofollow noreferrer">Velero</a>. A tool for backing up kubernetes resources and persistent volumes.</p>
