<p>Numerous forum posts and documentations specify extracting login info for the Kubernetes install from ~/.kube/config.</p>

<p>The problem I found: mine doesn't have a proper user account, it specifies a name and a token.</p>

<p>How do I get the account name so I can use the kubernetes-cockpit UI? Surprisingly there appears to be nothing on that topic - what to do if the config doesn't contain an account.</p>

<p>It depends on how you use Cockpit.
According to <a href="http://cockpit-project.org/guide/latest/feature-kubernetes.html" rel="nofollow noreferrer">cockpit official page</a>:</p>

<p>Used in a standard cockpit session:</p>

<blockquote>
  <p>If a user is able to use kubectl successfully when at their shell terminal, then that same user will able to use Kubernetes dashboard when logged into Cockpit</p>
</blockquote>

<p>I suppose this is your scenario, so if you didn't change default settings, the cockpit will look for .kube/config itself, i.e. you should be able to login without specifying your account.</p>
