<p>I'm playing with Google container engine on gcloud. So after successfully finished <code>gloud init</code> I followed instructions and did:</p>

<pre><code>gcloud container clusters get-credentials cluster-1 --zone europe-west1-c --project whatever
</code></pre>

<p>And then:</p>

<pre><code>kubectl proxy
</code></pre>

<p>But I got the following error message:</p>

<pre><code>error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
</code></pre>

<p>I do see stuff in <code>~/.kube/config</code> file so I'm not sure what went wrong. I have <code>minikube</code> also installed on the machine but I don't think that's a problem.</p>

<p>Use</p>

<pre><code>gcloud auth application-default login
</code></pre>

<p>to login for application default creadentials (<a href="https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login" rel="noreferrer">docs</a>). The behavior for application default credentials has <a href="https://cloud.google.com/sdk/release_notes#12800_20160928" rel="noreferrer">changed</a> in <code>gcloud</code> since version 128.</p>

<p>Note that changing credentials via <code>gcloud auth login</code> or <code>gcloud init</code> or <code>gcloud config set account MY_ACCOUNT</code> will NOT affect application default credentials, they managed separately from gcloud credentials.</p>
