<p>I've installed docker for desktop v2.0.0.3. I'm able to see cluster info using kubectl command. <code>kubectl cluster-info</code> which gives<br>
<code>Kubernetes master is running at https://localhost:6443</code>.<br>
Now when I try to login to <strong><a href="https://localhost:6443" rel="nofollow noreferrer">https://localhost:6443</a></strong> it doesn't ask for credentials and shows me 404 forbidden message . below is the entire trace -  </p>

<pre><code>{   "kind": "Status",   "apiVersion": "v1",   "metadata": {
       },   "status": "Failure",   "message": "forbidden: User \"system:anonymous\" cannot get path \"/\"",   "reason": "Forbidden",  "details": {
       },   "code": 403 }
</code></pre>

bosari
<p>You need a bearer token or a client certificate for accessing the kubernetes API.</p>

<p>Easiest option is to access it via <a href="https://kubernetes.io/docs/tasks/access-kubernetes-api/http-proxy-access-api/" rel="nofollow noreferrer">kubectl proxy</a> wherein kubectl will make use of kubeconfig to perform the authentication so you don't need to provide any certificate or token separately.</p>
