Kubernetes master username and password

11/12/2014

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?

-- Nick De Greek
google-kubernetes-engine
kubernetes

5 Answers

6/28/2015

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

kubectl config view
-- Oscar Barrett
Source: StackOverflow

4/29/2015

As of April 29 use:

gcloud container clusters describe [clustername]

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

-- joost
Source: StackOverflow

11/13/2014

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.

-- brendan
Source: StackOverflow

8/18/2016

You can also type

$ kubectl proxy

which will serve up the UI at http://localhost:8001/ui

-- Nicky Feller
Source: StackOverflow

8/23/2017

Use the below command to find the Kubernetes auto-generated password.

$Kubectl config view --minify

-- Ritesh Vishwakarma
Source: StackOverflow