<p>I am following the <a href="http://kubernetes.io/docs/hellonode/" rel="nofollow">hellonode</a> tutorial, deploying to Google Container Engine, but running into the error below:</p>

<pre><code>kubectl run simple-gke-server --image=us.gcr.io/cloud-assets-henry/simple-gke-server:v1 --port=8888

Error from server: the server does not allow access to the requested resource (post replicationcontrollers)
</code></pre>

<p>Even though I am able to get the credential</p>

<pre><code>gcloud container clusters get-credentials simplecluster
</code></pre>

<p>I get this problem, even when trying to get version info.</p>

<pre><code>kubectl version

Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:16:57Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"darwin/amd64"}

Couldn't read server version from server: the server does not allow access to the requested resource
</code></pre>

<p>I did have to update my kubectl to 1.4.0, which matches the version of my cluster.</p>

<p>I have also initialized by gcloud with a config, and also did auth login.</p>

<p>Is there anything else that I can do?</p>

<p>kubectl uses <a href="https://developers.google.com/identity/protocols/application-default-credentials">Application Default Credentials</a> for authenticating to GKE clusters. It is possible that your Application Default Credentials are configured for a different user than your gcloud credentials if you have previously configured ADC.</p>

<p>Try running <code>gcloud auth application-default login</code>, and make sure that the <code>GOOGLE_APPLICATION_CREDENTIALS</code> environment variable isn't pointing somewhere unexpected.</p>
