Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Where to get username/password? #579

Closed
Zhomart opened this issue Mar 27, 2016 · 15 comments
Closed

Question: Where to get username/password? #579

Zhomart opened this issue Mar 27, 2016 · 15 comments

Comments

@Zhomart
Copy link
Contributor

Zhomart commented Mar 27, 2016

I've got ip address of kubernetes master from kubectl cluster-info. I've appended /ui and opened on browser. Now it asks username/password, basic auth. Where to get them?

@cescoferraro
Copy link

@Zhomart try kubectl config viewwill show the user/password you are using when using the kubectl tool.

@Zhomart
Copy link
Contributor Author

Zhomart commented Mar 27, 2016

That's great! Thanks @cescoferraro

@Zhomart Zhomart closed this as completed Mar 27, 2016
@tarpanpathak
Copy link

@cescoferraro thanks!

@chowyu08
Copy link

why my ui need not password? how did you deploy it?@Zhomart

@floreks
Copy link
Member

floreks commented Jul 25, 2016

@chowyu08 It depends on the cluster configuration. If you are using certificates then no user/password is needed. I think it is required if authorization mode is set to i.e. ABAC

@chowyu08
Copy link

@floreks does set KUBE_APISERVER_OPTS="--authorization-mode=ABAC " ?

@floreks
Copy link
Member

floreks commented Jul 25, 2016

Yes, I think it is API server parameter. It is described better in here: http://kubernetes.io/docs/admin/authorization/

@Zhomart
Copy link
Contributor Author

Zhomart commented Jul 25, 2016

@chowyu08 I'm using Google Container Engine.

@vinayvenkat
Copy link

I have deployed kubernetes everywhere on vsphere. Now i would like to ssh into the master-node and the minion nodes. I have this client-certificate-data and client-key-data. How do I use these to ssh into the nodes?

@Zhomart
Copy link
Contributor Author

Zhomart commented Nov 1, 2017

Currently I proxy command: $ kubectl proxy. It opens local port, I append /ui at the end of the url.

$ kubectl proxy
Starting to serve on 127.0.0.1:8001

$ open http://127.0.0.1:8001/ui

@chicagobuss
Copy link

For people just finding this thread for the first time, note that if you're not a project owner within a GCP project, you won't be able to make cluster admin role bindings.

@reyou
Copy link

reyou commented Dec 26, 2018

For my local VM test, I have following config.
Where is the password? I tried admin / {emptyPassword} did not work.

$ microk8s.kubectl config view

apiVersion: v1
clusters:
- cluster:
    server: http://127.0.0.1:8080
  name: microk8s-cluster
contexts:
- context:
    cluster: microk8s-cluster
    user: admin
  name: microk8s
current-context: microk8s
kind: Config
preferences: {}
users:
- name: admin
  user:
    username: admin

@XuHaoIgeneral
Copy link

@reyou I had the same problem. How did you solve it?

@reyou
Copy link

reyou commented Apr 24, 2019

@XuHaoIgeneral I run following command:

$ kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep admin-user | awk '{print $1}')

and used token to login. Also if you are on your local. there is a skip button on login page, so you can just skip login screen.

@HebeHH
Copy link

HebeHH commented Sep 9, 2020

Thanks @reyou, this was the thing that worked for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants