<p>What is the proper way to delete pod running on kubernetes v1.25.6?
I tried <code>kubectl delete pod microservie-one-549464c5bb-7dtjq</code> but the pod is automatically created again.</p>

Peter Penzov
<p>The proper way is to delete the <code>deploy</code> that creates the <code>pod</code></p>
<p>List the deploys use:</p>
<pre><code>kubectl [-n namespace] get deploy
</code></pre>
<p>and assuming your deploy is named: <code>microservie-one</code></p>
<pre><code>kubectl [-n namespace] delete deploy microservie-one
</code></pre>
<hr />
<p>To recreate the pod anew, you will need to reapply the manifest:</p>
<pre><code>kubectl [-n namespace] apply -f microservie-one.yaml
</code></pre>
<hr />
<p>Anoter way to stop a pod, without destroying the deployment is to scale down the deployment to <code>0</code> replicas, and when you need it to scale it up to <code>1</code> replica:</p>
<pre class="lang-bash prettyprint-override"><code>kubectl [-n namespace] scale deployment/microservie-one --replicas=0
#later
kubectl [-n namespace] scale deployment/microservie-one --replicas=1
</code></pre>
