<p>I am installing kubectl in Ubuntu 20.04 following the guide <a href="https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/" rel="nofollow noreferrer">here</a> but it didn't create <code>/etc/kubernetes</code> folder for some reason. Then I tried this <a href="https://www.techrepublic.com/article/how-to-quickly-install-kubernetes-on-ubuntu/" rel="nofollow noreferrer">guide</a> , it now created a that folder, but only with <code>manifests</code> inside. There is no <code>.conf</code> file created. It will return this error if I ran <code>kubectl cluster-info</code>.</p>
<pre><code>W0629 19:50:08.122990   83790 loader.go:221] Config not found: /etc/kubernetes/admin.conf

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
</code></pre>
<p>Anyone knows the solution? Thanks</p>

eng2019
<p>First things first. Kubernetes and kubectl are different things. Installing kubectl is not supposed to create <code>/etc/kubernetes</code> folder or files there. The <code>kubectl</code> cli tool is only a client for a kubernetes cluster. If you already have a Kubernetes cluster then you can provide a <code>kubeconfig</code> to this cli tool. This will enable you to interact with the cluster.</p>
<p>Your second link is installing kubernetes cluster with <code>kubeadm</code> cli tool. This will create a cluster from ground up. If cluster creation is completed successfully then <code>kubeadm</code> tool will automatically create an <code>admin.conf</code> file for you. This file is also a <code>kubeconfig</code> file.</p>
