error: You must be logged in to the server (the server has asked for the client to provide credentials)

6/9/2017

I am getting this error while running the command "kubectl cluster-info" I am trying this on a google instance and have installed gcloud sdk as well as kubectl on my instance. I have tried running this command I found in a solution earlier:- "sudo sed -i -e 's/true/false/' /usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/config.json" and "gcloud container clusters get-credentials [cluster-name]" still no luck.

Please help

-- shrawani karpe
kubectl
kubernetes

0 Answers