<p>My pods terminate automatic and finally I found the disk usage was 100% and auto dropped by kubernetes(v1.15.2).Now I am free disk and how to restart the UnexpectedAdmissionError pod like this:</p>

<p><a href="https://i.stack.imgur.com/b8IDQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b8IDQ.png" alt="enter image description here"></a></p>

<p>I already tried this:</p>

<pre><code>~ ⌚ 0:34:23
$ kubectl rollout restart deployment kubernetes-dashboard-6466b68b-z6z78
Error from server (NotFound): deployments.extensions "kubernetes-dashboard-6466b68b-z6z78" not found
</code></pre>

<p>do not work for me.Any suggestion?</p>

Dolphin
<p>This worked for me:</p>

<pre><code>$ kubectl get pod kubernetes-dashboard-6466b68b-z6z78 -n kube-system -o yaml | kubectl replace --force -f -


pod "kubernetes-dashboard-6466b68b-z6z78" deleted
pod/kubernetes-dashboard-6466b68b-z6z78 replaced

</code></pre>

<p>From Documentation:</p>

<blockquote>
  <p><code>Replace</code> a resource by filename or stdin.</p>
  
  <p>JSON and YAML formats are accepted. If replacing an existing resource, the complete resource spec must be provided.
  This can be obtained by</p>
  
  <p>$ kubectl get TYPE NAME -o yaml</p>
</blockquote>

<p>It is worth checking <code>kubectl replace --help</code> as well.</p>

<p>Hope this help you.</p>
