<p>I'm running the kuberenets cluster on bare metal servers and my cluster nodes keep added and removed regularly. But when a node is removed, kubernetes does not remove it automatically from nodes list and <strong>kubectl get nodes</strong> keep showing NotReady nodes. Is there any automated way to achieve this? I want similar behavior for nodes as kubernetes does for pods. </p>

Vikram Jakhar
<p>To remove a node follow the below steps</p>
<pre><code>Run on Master
# kubectl cordon &lt;node-name&gt;
# kubectl drain &lt;node-name&gt; --force --ignore-daemonsets  --delete-emptydir-data
# kubectl delete node &lt;node-name&gt;
</code></pre>
