<p>Is it possible to plug and play storage to an active pod without restarting the pod? I want to bind a new storage to a running pod without restarting the pod. Does Kubernetes support this?</p>

gssg_0413
<p>Most things in a Pod are immutable.  In particular if you look at the <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#podspec-v1-core" rel="nofollow noreferrer">API definition of a PodSpec</a> it says in part (emphasis mine)</p>
<blockquote>
<p><code>container</code>: List of containers belonging to the pod. <strong>Containers cannot currently be added or removed.</strong> There must be at least one container in a Pod. <strong>Cannot be updated.</strong></p>
</blockquote>
<p>Typically you don't directly work with Pods; you work with a higher-level controller like a Deployment.  There you can edit these things, and it reacts by creating new Pods with the new pod spec and then deleting the old Pods.</p>
<p>Also remember that sometimes the cluster itself will delete or restart a Pod (if its Node is over capacity or fails, for example) and you don't have any control over this.  It's better to plan for your Pods to be periodically restarted than to try to prevent it.</p>
