<p>I've been trying to shut down kubernetes cluster , but I couldn't managed to do it.</p>

<p>When I type </p>

<pre><code>kubectl cluster-info
</code></pre>

<p>I can see that my cluster is still running.</p>

<p>I tried commands like running script</p>

<pre><code>kube-down.sh
</code></pre>

<p>but it didn't work.</p>

<p>I deleted all pods. How can I shut it down ?</p>

<p>The tear down section of the <a href="https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/#tear-down" rel="noreferrer">official documentation</a> says:</p>
<blockquote>
<p>To undo what kubeadm did, you should first drain the node and make sure that the node is empty before shutting it down.</p>
<p>Talking to the master with the appropriate credentials, run:</p>
</blockquote>
<pre><code>kubectl drain &lt;node name&gt; --delete-local-data --force --ignore-daemonsets 
kubectl delete node &lt;node name&gt;
</code></pre>
<blockquote>
<p>Then, on the node being removed, reset all kubeadm installed state:</p>
</blockquote>
<pre><code>kubeadm reset
</code></pre>
