Kubernetes Cockpit username and password are not correct

I work with the Kubernetes tutorial and deploy the cluster locally with Vagrant.

After the vagrant machine finishes its boot, I get the following output:

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

When I go to https://10.245.1.2:9090, I see the login screen. I do the following:

./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

but the username and password are incorrect.

How can I connect to the cab?

thank

+4
source share
2 answers

The username and password in the kubeconfig file are used to authenticate with Aperver Kubernetes running on your cluster. Authentication for Cockpit is completely separate.

, Cockpit vagrant vagrant.

+6

, kubectl.

+ /Users/me/.kube/config .

. kubectl config .

Vagrant: Kubernetes on CoreOS/Vagrant

0

All Articles