• Docs
  • Recipes
  • Sources
  • GCP K8S

GCP + Kubernetes (GKE)

kind: source
  name: gcp
  path: "cloudquery/gcp"
  version: "v3.0.5"
  destinations: ["<destination>"]
kind: source
  name: k8s
  path: "cloudquery/k8s"
  version: "v2.4.3"
  destinations: ["<destination>"]

Kubernetes users may see the following message when running the K8s plugin on GKE Clusters:

WARNING: the gcp auth plugin is deprecated in v1.22+, unavailable in v1.26+; use gcloud instead.

As part of an initiative to remove platform specific code from Kubernetes, authentication will begin to be delegated to authentication plugins, starting in version 1.26.

What does this mean for CloudQuery users?

CloudQuery does not use any specific resources which hinder the upgrade.


The easiest way to upgrade, is to install gke-gcloud-auth-plugin from gcloud components on Mac or Windows:

gcloud components install gke-gcloud-auth-plugin

and apt on Deb based systems:

sudo apt-get install google-cloud-sdk-gke-gcloud-auth-plugin


Mac or Linux:

gke-gcloud-auth-plugin --version


gke-gcloud-auth-plugin.exe --version

Switch authentication methods

Set the flag:


Update components:

gcloud components update

Force credential update:

gcloud container clusters get-credentials {$CLUSTER_NAME}

Now you should be able to use kubectl as normal, and you should no longer see the warning in the CloudQuery output.

For more information, read Google's press release.