Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kubernetes master username and password

I've installed a kubernetes cluster (using Google's Container Engine) and I noticed a service listening on port 443 on the master server. Tried to access it but it requires username and password, so any ideas what these credentials are?

like image 585
Nick De Greek Avatar asked Nov 12 '14 15:11

Nick De Greek


3 Answers

You can read the cluster config using kubectl. This will contain the username and password for the UI.

kubectl config view
like image 172
Oscar Barrett Avatar answered Nov 05 '22 17:11

Oscar Barrett


As of April 29 use:

gcloud container clusters describe [clustername]

This will give you some YAML (see here) containing also the username and password.

like image 34
joost Avatar answered Nov 05 '22 16:11

joost


The user/password are stored in the API.

If you do:

gcloud preview container --zone <zone> clusters list

You should be able to see the user name and password for your cluster.

Note that the HTTPS cert that it uses is currently signed by an internal CA (stored in your home directory) so for a web browser, you will need to manually accept the certificate. We're working on making this more clean.

like image 7
brendan Avatar answered Nov 05 '22 16:11

brendan