<p>In a namespace <code>foo</code> there is an existing pod running</p>
<pre><code>$ kubectl get pods -n foo

NAME                      READY     STATUS    RESTARTS   AGE
hello-1816639685-xejyk    1/1       Running   0          6d3h
</code></pre>
<p>How can we duplicate the <code>hello</code> pod so that we can try out things in this duplicated pod without affecting the original pod?</p>

gameveloster
<p>You can get the pod manifest using YAML output from kubectl and create a new pod based on that specification.</p>
<p>For example</p>
<p><code>kubectl get pod hello-1816639685-xejyk -n foo -o yaml</code></p>
<p>You need to use a different name or namespace, since the name must be unique.</p>
