<p>I had Minikube installed on my Mac and then I removed it and replaced it with a <a href="https://medium.com/better-programming/local-k3s-cluster-made-easy-with-multipass-108bf6ce577c" rel="nofollow noreferrer">3-node cluster using Multipass and K3s</a>. Now my issue is that <code>kubectl</code> is still referring to Minikube when I execute its commands in terminal. </p>

<p>For instance when I run <code>kubectl get nodes</code> I get the following error:</p>

<pre><code>Error in configuration: 
* unable to read client-cert /Users/hemodd/.minikube/client.crt for cluster1 due to open /Users/hemodd/.minikube/client.crt: no such file or directory
* unable to read client-key /Users/hemodd/.minikube/client.key for cluster1 due to open /Users/hemodd/.minikube/client.key: no such file or directory
* unable to read certificate-authority /Users/hemodd/.minikube/ca.crt for cluster1 due to open /Users/hemodd/.minikube/ca.crt: no such file or directory
</code></pre>

<p>I have followed these steps to remove Minikube but I am still getting the same error:</p>

<pre><code>minikube delete 
brew uninstall minikube
rm -rf ~/.minikube
</code></pre>

<p>Any help is much appreciated.</p>

HemOdd
<p>Your error are mostly about the wrong setting in kubeconfig, please double  check local file <code>~/.kube/confg</code></p>

<p>This is the default kubectl configuration file, it includes three parts: clusters, contexts and users</p>

<p>If you have two kubernetes clusters (one is minikube, and the other is k3s), you should be fine to set up them in same file without conflict. </p>

<p>Read this first: <a href="https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/</a></p>

<p>Each cluster should have related certificates (and user certificates) set properly.</p>

<p>then you are fine to set the current context with below command</p>

<pre><code>kubectl config set-context XXXX
</code></pre>
