<p>I've got a pod that restarts immediately. When I delete the pod <code>kubectl delete pod &lt;pod_name&gt;</code> it restarts immediately. However, I want this pod to be restarted after 1 min when I perform the delete operation.</p>
<p><code>kubectl delete pod &lt;pod_name&gt;</code>... it waits 1 minute then it restarts running again.</p>
<p>To clarify, I don't want <code>--grace-period</code> flag where it waits for specified time. I want to delete pod immediately, and make it run again after 1 minute without manual intervention. Is it applicable to do?</p>
<p>How can I do that?</p>

baris
<p>What you're asking for is not only not possible, but it also goes against one of the best qualities of Kubernetes, which is its resiliency.</p>
<p>The reason your Pod tries to be rescheduled (after failure or voluntary shutdown) is because it is being managed via ReplicaSet.</p>
<blockquote>
<p>A ReplicaSet's purpose is to maintain a stable set of replica Pods running at any given time. As such, it is often used to guarantee the availability of a specified number of identical Pods.</p>
</blockquote>
<p><a href="https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/</a></p>
<p>What you could do is create a Pipeline (Jenkins, GitLab, GitHub, whatever you prefer...) where you uninstall the Deployment/StatefulSet, wait some time and reinstall the Deployment/StatefulSet.</p>
