<p>I'm trying to connect to a cluster and I'm getting the following error:</p>
<pre><code>gcloud container clusters get-credentials cluster1 --region europe-west2 --project my-project
Fetching cluster endpoint and auth data.
CRITICAL: ACTION REQUIRED: gke-gcloud-auth-plugin, which is needed for continued use of kubectl, was not found or is not executable. 
Install gke-gcloud-auth-plugin for use with kubectl by following https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke
kubeconfig entry generated for dbcell-cluster.
</code></pre>
<p>I have installed Google Cloud SDK 400, kubektl 1.22.12, gke-gcloud-auth-plugin 0.3.0, and also setup /~.bashrc with</p>
<p><code>export USE_GKE_GCLOUD_AUTH_PLUGIN=True</code></p>
<pre><code>gke-gcloud-auth-plugin --version
Kubernetes v1.24.0-alpha+f42d1572e39979f6f7de03bd163f8ec04bc7950d
</code></pre>
<p>but when I try to connect to the cluster always I'm getting the same error, any idea here?</p>
<p>Thanks</p>
<hr />
<p>The cluster exist in that region, also I verfied the env variable</p>
<p>with</p>
<pre><code>echo $USE_GKE_GCLOUD_AUTH_PLUGIN
True
</code></pre>
<p>I installed the <code>gke-gcloud-auth-plugin using gcloud co</code>mponents install... I do not know what more can I check</p>
<p><a href="https://i.stack.imgur.com/55mjc.png" rel="nofollow noreferrer">gcloud components list</a></p>

<p>I solved the same problem by removing my current <code>kubeconfig</code> context for GCP.</p>
<ol>
<li><p>Get your context name running:</p>
<p>kubectl config get-contexts</p>
</li>
<li><p>Delete the context:</p>
<p>kubectl config delete-context CONTEXT_NAME</p>
</li>
<li><p>Reconfigure the credentials</p>
<p>gcloud container clusters get-credentials CLUSTER_NAME --region REGION --project PROJECT</p>
</li>
</ol>
<p>The warning message should be gone by now.</p>
