<p>I am working with Kubernetes tutorial and deploying the cluster locally with Vagrant.</p>

<p>After the vagrant machine finishes its loading, I get the following outout:</p>

<blockquote>
<pre><code>Kubernetes cluster is running.
The master is running at:
https://10.245.1.2
Administer and visualize its resources using Cockpit:
 https://10.245.1.2:9090
For more information on Cockpit, visit http://cockpit-project.org
The user name and password to use is located in /Users/me/.kube/config
</code></pre>
</blockquote>

<p>When i go to <code>https://10.245.1.2:9090</code> i see the login fedora screen.
I do the following:</p>

<blockquote>
<pre><code>./cluster/kubectl.sh config view
apiVersion: v1
clusters:
- cluster:
    certificate-authority-data: REDACTED
    server: https://10.245.1.2
  name: vagrant
contexts:
- context:
  cluster: vagrant
    user: vagrant
  name: vagrant
current-context: vagrant
kind: Config
preferences: {}
users:
- name: vagrant
  user:
    client-certificate-data: REDACTED
    client-key-data: REDACTED
    password: 9r5V2B2wn6oeaciX
    username: admin
</code></pre>
</blockquote>

<p>but the username and password are incorrect.</p>

<p>how am i supposed to connect to the cockpit? </p>

<p>Thanks</p>

<p>The username and password in the kubeconfig file are used to authenticate to the Kubernetes apiserver running in your cluster. The authentication for Cockpit is entirely separate. </p>

<p>According to the <a href="https://github.com/kubernetes/kubernetes/blob/2e89f555c650c01ba577a015fd1b23dbb71707e3/cluster/vagrant/provision-master.sh#L107-L108">vagrant setup scripts</a>, you should log into Cockpit as the user <code>vagrant</code> with the password <code>vagrant</code>. </p>
