<p>Could be a basic one..</p>

<p>I have created a pod in Openshift Enterprise 3.2 with the configuration set as <strong><code>restartPolicy: Always</code></strong> . So ideally when the pod is destroyed Openshift will make sure to re-run/re-create the pod because of the restart policy.</p>

<p><strong>Now I no longer need the pod. When I am trying to destroy the pod it is getting created again.</strong> </p>

<p>My question is <strong>What is the ideal way to destroy the pod with</strong> <strong><code>restartPolicy: Always</code></strong></p>

<p>The deployment config (and related replication controller) is the reason your pod is getting recreated when you delete it. The replication controller's job is literally to "ensure that a specified number of replicas of a pod are running at all times."</p>

<p>To destroy the pod (and leave the deployment config and other resources intact, just run: <code>oc scale dc &lt;dc-name&gt; --replicas=0</code></p>

<ul>
<li>Replication controller: <a href="https://docs.openshift.com/container-platform/3.6/architecture/core_concepts/deployments.html#replication-controllers" rel="noreferrer">https://docs.openshift.com/container-platform/3.6/architecture/core_concepts/deployments.html#replication-controllers</a></li>
<li>Manual scaling: <a href="https://docs.openshift.com/container-platform/latest/dev_guide/deployments/basic_deployment_operations.html#scaling" rel="noreferrer">https://docs.openshift.com/container-platform/latest/dev_guide/deployments/basic_deployment_operations.html#scaling</a></li>
</ul>
