How to get the master server public key in Google Container Engine?

7/28/2015

I'm trying to get the master server public key from a Google Container Engine managed Kubernetes cluster.

I have a question about the glcoud beta container clusters describe command

gcloud beta container clusters describe NAME

The documentation is a currently a bit sparse https://cloud.google.com/sdk/gcloud/reference/beta/container/clusters/describe

Does the "gcloud beta container clusters describe" command return the master server public key? Is that in the masterAuth:clientKey?

-- tenfourty
google-cloud-platform
google-kubernetes-engine
kubernetes

1 Answer

7/28/2015

The documentation you're looking for is here. clientKey is the private key used by clients to authenticate to the master. The clusterCaCertificate is the root of trust for the cluster, with which the master's certificate is signed. The API doesn't directly expose the master's public cert, only the root cert.

-- Alex Robinson
Source: StackOverflow