<p>I had configured multi master of k8s repeatedly.
It looks like the previous configuration of master held still.
The pod of calico node didn't work properly.</p>

<p>I want to remove all files of k8s.
Could you know how to remove the all files ?</p>

<p>Many depends how did you create cluster.</p>

<p>If you used <code>Kubeadm</code> you can use <a href="https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-reset/" rel="nofollow noreferrer">kubeadm reset</a> which will revert of changes made by <code>kubeadm init</code> or <code>kubeadm join</code>.</p>

<p>Beside that you need to delete <code>kubectl</code>, <code>kubeadm</code>, etc. If you instlled it using <code>apt-get</code> (depends on distro. This is example from ubuntu) you can <code>purge</code> them.</p>

<pre><code>$ sudo apt-get purge kubeadm kubectl kube* 
</code></pre>

<p>Then use <code>autoremove</code> to get rid out of all dependencies related.</p>

<pre><code>$ sudo apt-get autoremove 
</code></pre>

<p>And at the end you should remove rest of config using:</p>

<ul>
<li><strong>$ sudo rm -rf ~/.kube</strong></li>
<li><strong>ipvsadm --clear</strong> or <strong>iptables -F &amp;&amp; iptables -t nat -F &amp;&amp; iptables -t mangle -F &amp;&amp; iptables -X</strong> or similar to clean-up iptables rules  </li>
</ul>

<p>If this won't answer your question, please add more information about your cluster.</p>
